fix: Error with `this.unsubscribe is not a function` (#499)
parent
603532a09f
commit
d24666370f
|
@ -40,6 +40,7 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
documents: [],
|
||||
unsubscribe: () => {},
|
||||
search: ''
|
||||
}
|
||||
},
|
||||
|
@ -89,7 +90,7 @@ export default {
|
|||
})
|
||||
},
|
||||
subscribeChanges() {
|
||||
this.$store.subscribe((mutation, state) => {
|
||||
return this.$store.subscribe((mutation, state) => {
|
||||
if (mutation.type === 'notifyDashboardRefresh') {
|
||||
this.getPendingDocuments()
|
||||
}
|
||||
|
|
|
@ -49,6 +49,7 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
recentItems: [],
|
||||
unsubscribe: () => {},
|
||||
isLoaded: true,
|
||||
search: '',
|
||||
accentRegexp: /[\u0300-\u036f]/g
|
||||
|
@ -144,7 +145,7 @@ export default {
|
|||
}
|
||||
},
|
||||
subscribeChanges() {
|
||||
this.$store.subscribe((mutation, state) => {
|
||||
return this.$store.subscribe((mutation, state) => {
|
||||
if (mutation.type === 'notifyDashboardRefresh') {
|
||||
this.getRecentItems()
|
||||
}
|
||||
|
|
|
@ -54,6 +54,7 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
favorites: [],
|
||||
unsubscribe: () => {},
|
||||
isLoaded: true,
|
||||
search: '',
|
||||
accentRegexp: /[\u0300-\u036f]/g
|
||||
|
@ -108,7 +109,7 @@ export default {
|
|||
})
|
||||
},
|
||||
subscribeChanges() {
|
||||
this.$store.subscribe((mutation, state) => {
|
||||
return this.$store.subscribe((mutation, state) => {
|
||||
if (mutation.type === 'notifyDashboardRefresh') {
|
||||
this.getFavoritesList()
|
||||
}
|
||||
|
|
|
@ -37,7 +37,8 @@ export default {
|
|||
mixins: [formMixin],
|
||||
data() {
|
||||
return {
|
||||
fieldsList
|
||||
fieldsList,
|
||||
unsubscribe: () => {}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
|
|
@ -96,7 +96,8 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
fieldsList
|
||||
fieldsList,
|
||||
unsubscribe: () => {}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
Loading…
Reference in New Issue