diff --git a/src/components/board/Board.vue b/src/components/board/Board.vue
index e6bb69547..6b371d338 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') }}
+
+
@@ -75,11 +80,6 @@
-
-
-
{{ t('deck', 'Board not found') }}
-
-
@@ -147,12 +147,6 @@ export default {
},
watch: {
id(newValue, oldValue) {
- if (this.session) {
- // close old session
- this.session.close()
- }
- this.session = createSession(newValue)
-
this.fetchData()
},
showArchived() {
@@ -172,11 +166,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 }) {