Added optional chaining (?.) and nullish coalescing (??) to handle cases

This commit is contained in:
Trevor Mears
2025-12-28 03:33:12 -08:00
parent 57b0f7ba81
commit d251488f5f
+1 -1
View File
@@ -955,7 +955,7 @@ class ChannelList {
* Get list of visible (non-hidden) channels in display order
*/
getVisibleChannels() {
const showHidden = this.showHiddenCheckbox.checked;
const showHidden = this.showHiddenCheckbox?.checked ?? false;
return this.channels.filter(ch => {
if (showHidden) return true;
const channelHidden = this.isHidden('channel', ch.sourceId, ch.id);