From fb6e116446aa817568db8328184e2d5c2c7b8bd9 Mon Sep 17 00:00:00 2001 From: roschaefer Date: Fri, 20 Dec 2019 17:38:30 +0100 Subject: [PATCH] `isFirstOfType` is not a computed property --- .../generic/SearchableInput/SearchableInput.vue | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/webapp/components/generic/SearchableInput/SearchableInput.vue b/webapp/components/generic/SearchableInput/SearchableInput.vue index 8386c08af..087b03e63 100644 --- a/webapp/components/generic/SearchableInput/SearchableInput.vue +++ b/webapp/components/generic/SearchableInput/SearchableInput.vue @@ -90,16 +90,14 @@ export default { isActive() { return !isEmpty(this.previousSearchTerm) }, - isFirstOfType() { - return function(option) { - return ( - this.options.findIndex(o => o === option) === - this.options.findIndex(o => o.__typename === option.__typename) - ) - } - }, }, methods: { + isFirstOfType(option) { + return ( + this.options.findIndex(o => o === option) === + this.options.findIndex(o => o.__typename === option.__typename) + ) + }, onFocus(event) { clearTimeout(this.searchProcess) this.isOpen = true