diff options
Diffstat (limited to 'frontend/src')
| -rw-r--r-- | frontend/src/menu-hook.tsx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/frontend/src/menu-hook.tsx b/frontend/src/menu-hook.tsx index 5a3ffde5..347084e4 100644 --- a/frontend/src/menu-hook.tsx +++ b/frontend/src/menu-hook.tsx @@ -137,7 +137,14 @@ class MenuHook extends Logger { const oType = itemList[index].type; itemList[index] = patch({ ...cloneElement(itemList[index]), - type: (props) => createElement(oType, props), + type: (props: any) => createElement(oType, props), + }); + }); + itemPatches.get('*')?.forEach((patch) => { + const oType = itemList[index].type; + itemList[index] = patch({ + ...cloneElement(itemList[index]), + type: (props: any) => createElement(oType, props), }); }); } |
