Make sure to make the list id from the route an int to not fail the comparison
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2020-07-24 18:47:33 +02:00
parent b4cdc0b3c4
commit 7ad24c6d45
Signed by: konrad
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
}