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: {
|
||||
setListId(state, listId) {
|
||||
state.listId = listId
|
||||
state.listId = parseInt(listId)
|
||||
},
|
||||
setBuckets(state, buckets) {
|
||||
state.buckets = buckets
|
||||
|
|
|
@ -92,7 +92,9 @@
|
|||
if (
|
||||
this.$route.params.listId === this.listLoaded ||
|
||||
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue