mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
isFirstOfType is not a computed property
This commit is contained in:
parent
9f8c207b46
commit
fb6e116446
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user