Fix client error on selecting server with no channels

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

2
Cargo.lock generated
View File

@ -2217,7 +2217,7 @@ checksum = "436b050e76ed2903236f032a59761c1eb99e1b0aead2c257922771dab1fc8c78"
[[package]] [[package]]
name = "reminder-rs" name = "reminder-rs"
version = "1.6.25" version = "1.6.26"
dependencies = [ dependencies = [
"base64 0.21.2", "base64 0.21.2",
"chrono", "chrono",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "reminder-rs" name = "reminder-rs"
version = "1.6.25" version = "1.6.26"
authors = ["Jude Southworth <judesouthworth@pm.me>"] authors = ["Jude Southworth <judesouthworth@pm.me>"]
edition = "2021" edition = "2021"
license = "AGPL-3.0 only" license = "AGPL-3.0 only"

View File

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