diff --git a/client/src/ui.js b/client/src/ui.js index 340dc135ea..60fdbe5d8a 100644 --- a/client/src/ui.js +++ b/client/src/ui.js @@ -505,7 +505,7 @@ class Dialog { $main.append($button); }); - const allDdItemsHidden = this.dropdownItemList.filter(o => !o.hidden).length === 0; + const allDdItemsHidden = this.dropdownItemList.filter(o => o && !o.hidden).length === 0; const $dropdown = $('
') .addClass('btn-group')