提交 642cbc9f 编写于 作者: M Matt Bierner

Ensure menus with no group specified have proper grouping

Fixes #62875
上级 30fb7804
......@@ -56,9 +56,9 @@ export class Menu implements IMenu {
for (let item of menuItems) {
// group by groupId
const groupName = item.group;
const groupName = item.group || '';
if (!group || group[0] !== groupName) {
group = [groupName || '', []];
group = [groupName, []];
this._menuGroups.push(group);
}
group![1].push(item);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册