diff --git a/src/components/board/Board.vue b/src/components/board/Board.vue
index f41cf81bb..a2931c29b 100644
--- a/src/components/board/Board.vue
+++ b/src/components/board/Board.vue
@@ -30,6 +30,11 @@
{{ t('deck', 'Loading board') }}
+
+
+
{{ t('deck', 'Board not found') }}
+
+
@@ -70,11 +75,6 @@
-
-
-
{{ t('deck', 'Board not found') }}
-
-
@@ -140,12 +140,6 @@ export default {
},
watch: {
id(newValue, oldValue) {
- if (this.session) {
- // close old session
- this.session.close()
- }
- this.session = createSession(newValue)
-
this.fetchData()
},
showArchived() {
@@ -165,11 +159,16 @@ export default {
try {
await this.$store.dispatch('loadBoardById', this.id)
await this.$store.dispatch('loadStacks', this.id)
+
+ this.session?.close()
+ this.session = createSession(this.id)
} catch (e) {
+ this.loading = false
console.error(e)
showError(e)
+ } finally {
+ this.loading = false
}
- this.loading = false
},
onDropStack({ removedIndex, addedIndex }) {