From 09bc78ec0233fb6a39f70ad3a8e292e3c5262be9 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 11 May 2023 11:01:45 +0100 Subject: [PATCH] make sure items is defined --- source/UI/js/Menu/Menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/UI/js/Menu/Menu.js b/source/UI/js/Menu/Menu.js index cb60f2d1..dafa3aab 100644 --- a/source/UI/js/Menu/Menu.js +++ b/source/UI/js/Menu/Menu.js @@ -306,7 +306,7 @@ Ox.Menu = function(options, self) { self.optionGroup = {}; self.optionGroupOffset = {}; items.forEach(function(item, i) { - if (item.group) { + if (item.group && item.items) { items[i] = item.items.map(function(v) { return Ox.extend(v, { group: item.group