From 6bce395daf30e2d3d9dd932bd6006c06dabd753e Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Wed, 26 Jun 2024 13:51:19 +0300 Subject: [PATCH] fix dropdown empty --- client/src/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')