Make sure to make the list id from the route an int to not fail the comparison

This commit is contained in:
kolaente 2020-07-24 18:47:33 +02:00
parent b4cdc0b3c4
commit 7ad24c6d45
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
2 changed files with 4 additions and 2 deletions

View file

@ -16,7 +16,7 @@ export default {
}),
mutations: {
setListId(state, listId) {
state.listId = listId
state.listId = parseInt(listId)
},
setBuckets(state, buckets) {
state.buckets = buckets

View file

@ -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
}