remove a small warning

This commit is contained in:
lesion 2023-03-09 21:24:45 +01:00
parent ccffe5f7b0
commit b401d829db
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -38,7 +38,7 @@ export default {
this.$fetch() this.$fetch()
} }
}, },
data ({ $store }) { data () {
return { return {
mdiMagnify, mdiCloseCircle, mdiMagnify, mdiCloseCircle,
isCurrentMonth: true, isCurrentMonth: true,
@ -89,16 +89,18 @@ export default {
created () { created () {
this.$root.$on('dayclick', this.dayChange) this.$root.$on('dayclick', this.dayChange)
this.$root.$on('monthchange', this.monthChange) this.$root.$on('monthchange', this.monthChange)
this.storeUnsubscribe = this.$store.subscribeAction( { after: (action, state) => { if (process.client) {
if (action.type === 'setFilter') { this.storeUnsubscribe = this.$store.subscribeAction( { after: (action, state) => {
if (this.filter.query && this.filter.query.length > 2) { if (action.type === 'setFilter') {
this.search() if (this.filter.query && this.filter.query.length > 2) {
} else { this.search()
this.tmpEvents = [] } else {
this.$fetch() this.tmpEvents = []
this.$fetch()
}
} }
} }})
}}) }
}, },
destroyed () { destroyed () {
this.$root.$off('dayclick') this.$root.$off('dayclick')