fix: avoid crashing when delete group menu (#2239)
This commit is contained in:
parent
57507b310e
commit
0ba1c3d5c7
@ -392,7 +392,8 @@ export const Menu: ComposedMenu = observer(
|
|||||||
|
|
||||||
if (mode === 'mix' && key) {
|
if (mode === 'mix' && key) {
|
||||||
const s = schema.properties?.[key];
|
const s = schema.properties?.[key];
|
||||||
if (s['x-component'] === 'Menu.SubMenu') {
|
// fix T-934
|
||||||
|
if (s?.['x-component'] === 'Menu.SubMenu') {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user