Skip to content

Commit 6fd07f3

Browse files
committed
search: Fix undefined flabel_cont in updateCustomLabels
1 parent fe08bc6 commit 6fd07f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

js/webui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2184,7 +2184,7 @@ var theWebUI =
21842184
...labelPanelEl.querySelectorAll(':scope > :not(li[id^="clabel__"])'),
21852185
...customLabelElements
21862186
);
2187-
if (this.actLbls['plabel_cont'].some(lbl => !document.getElementById(lbl)))
2187+
if ((this.actLbls['plabel_cont'] ?? []).some(lbl => !document.getElementById(lbl)))
21882188
{
21892189
// Remove non-existent active labels (to potentially show 'All' label as selected)
21902190
this.actLbls['plabel_cont'] = this.actLbls['plabel_cont']

0 commit comments

Comments
 (0)