From 335d38e12b9b1781fe7002cff4e676ea7a592ecc Mon Sep 17 00:00:00 2001
From: AAGaming <aa@mail.catvibers.me>
Date: Sat, 31 Dec 2022 22:46:39 -0500
Subject: add * option for route in itempatches

---
 frontend/src/menu-hook.tsx | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

(limited to 'frontend/src/menu-hook.tsx')

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),
                   });
                 });
               }
-- 
cgit v1.2.3

