mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 09:47:10 +00:00
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) {
|
||||
const s = schema.properties?.[key];
|
||||
if (s['x-component'] === 'Menu.SubMenu') {
|
||||
// fix T-934
|
||||
if (s?.['x-component'] === 'Menu.SubMenu') {
|
||||
return s;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user