Fix client error on selecting server with no channels

This commit is contained in:
jude committed 2023-07-30 15:11:34 +01:00
1 parent 90df265114
commit 51c9d8a7ae
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -62,7 +62,7 @@ function update_select(sel) {
channelDisplay.textContent = `#${sel.selectedOptions[0].textContent}`;
}
if (sel.selectedOptions[0] === null) {
if (sel.selectedOptions[0] === undefined) {
return;
}