From 7ad24c6d45d709ef9d6a893929c1e617ae465510 Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 24 Jul 2020 18:47:33 +0200 Subject: [PATCH] Make sure to make the list id from the route an int to not fail the comparison --- src/store/modules/kanban.js | 2 +- src/views/list/ShowList.vue | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/store/modules/kanban.js b/src/store/modules/kanban.js index e290d5f3..d9e255fc 100644 --- a/src/store/modules/kanban.js +++ b/src/store/modules/kanban.js @@ -16,7 +16,7 @@ export default { }), mutations: { setListId(state, listId) { - state.listId = listId + state.listId = parseInt(listId) }, setBuckets(state, buckets) { state.buckets = buckets diff --git a/src/views/list/ShowList.vue b/src/views/list/ShowList.vue index 0c1b5f5c..cb70bb34 100644 --- a/src/views/list/ShowList.vue +++ b/src/views/list/ShowList.vue @@ -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 }