diff --git a/frontend/src/stores.js b/frontend/src/stores.js index 9cba74d..ab61c6a 100644 --- a/frontend/src/stores.js +++ b/frontend/src/stores.js @@ -49,6 +49,8 @@ class ChannelsStore extends Store { const index = this.value.findIndex(e => e.id === selectedChannel.value.id); if (index !== -1) selectedChannel.set(this.value[index]); + else // if the channel doesn't exist, just select the first one + selectedChannel.set(channels[0]); } } this.updated();