From 3d87c1f7789d9cd519cb0992d8a9219a7434c3d8 Mon Sep 17 00:00:00 2001 From: JannisX11 Date: Tue, 18 Apr 2023 18:41:44 +0200 Subject: [PATCH] Fix options not getting added to empty sub menus --- js/interface/menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/interface/menu.js b/js/interface/menu.js index cb50fe5c..5b25d975 100644 --- a/js/interface/menu.js +++ b/js/interface/menu.js @@ -541,7 +541,7 @@ class Menu { } else { for (var i = 0; i < arr.length; i++) { var item = arr[i] - if (item.children && item.children.length > 0 && item.id === track[layer] && layer < 20) { + if (item.children instanceof Array && item.id === track[layer] && layer < 20) { traverse(item.children, layer+1) i = 1000 }