Make sure to make the list id from the route an int to not fail the comparison
This commit is contained in:
parent
b4cdc0b3c4
commit
7ad24c6d45
2 changed files with 4 additions and 2 deletions
|
@ -16,7 +16,7 @@ export default {
|
||||||
}),
|
}),
|
||||||
mutations: {
|
mutations: {
|
||||||
setListId(state, listId) {
|
setListId(state, listId) {
|
||||||
state.listId = listId
|
state.listId = parseInt(listId)
|
||||||
},
|
},
|
||||||
setBuckets(state, buckets) {
|
setBuckets(state, buckets) {
|
||||||
state.buckets = buckets
|
state.buckets = buckets
|
||||||
|
|
|
@ -92,7 +92,9 @@
|
||||||
if (
|
if (
|
||||||
this.$route.params.listId === this.listLoaded ||
|
this.$route.params.listId === this.listLoaded ||
|
||||||
typeof this.$route.params.listId === 'undefined' ||
|
typeof this.$route.params.listId === 'undefined' ||
|
||||||
this.$route.params.listId === this.currentList.id) {
|
this.$route.params.listId === this.currentList.id ||
|
||||||
|
parseInt(this.$route.params.listId) === this.currentList.id
|
||||||
|
) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue