diff --git a/contentcuration/contentcuration/frontend/channelEdit/views/TreeView/TreeViewBase.vue b/contentcuration/contentcuration/frontend/channelEdit/views/TreeView/TreeViewBase.vue index 4b3d75f26f..2de7cae031 100644 --- a/contentcuration/contentcuration/frontend/channelEdit/views/TreeView/TreeViewBase.vue +++ b/contentcuration/contentcuration/frontend/channelEdit/views/TreeView/TreeViewBase.vue @@ -465,8 +465,21 @@ return DropEffect.COPY; }, }, + watch: { + rootId: { + handler(id) { + if (!id) { + this.loadChannel().catch(() => { + this.$store.dispatch('showSnackbarSimple', 'Failed to load channel'); + }); + } + }, + immediate: true, + }, + }, methods: { ...mapActions('channel', ['deleteChannel']), + ...mapActions('currentChannel', ['loadChannel']), handleDelete() { this.deleteChannel(this.currentChannel.id).then(() => { localStorage.snackbar = this.$tr('channelDeletedSnackbar'); diff --git a/contentcuration/contentcuration/frontend/channelEdit/views/TreeView/index.vue b/contentcuration/contentcuration/frontend/channelEdit/views/TreeView/index.vue index 38a17d2a0c..9d36a109aa 100644 --- a/contentcuration/contentcuration/frontend/channelEdit/views/TreeView/index.vue +++ b/contentcuration/contentcuration/frontend/channelEdit/views/TreeView/index.vue @@ -89,7 +89,7 @@