diff options
| author | AAGaming <aagaming@riseup.net> | 2024-06-13 17:00:50 -0400 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2024-06-13 17:00:50 -0400 |
| commit | 259aabf82fb0477a9048ab5b3add0d51205f4c8a (patch) | |
| tree | f703742909cc1b6982dfeba5043347a88f453231 /frontend/src/router-hook.tsx | |
| parent | 1de8c5915bf126c9fce56e5e3f190e00372b4aa3 (diff) | |
| download | decky-loader-259aabf82fb0477a9048ab5b3add0d51205f4c8a.tar.gz decky-loader-259aabf82fb0477a9048ab5b3add0d51205f4c8a.zip | |
update dependencies
Diffstat (limited to 'frontend/src/router-hook.tsx')
| -rw-r--r-- | frontend/src/router-hook.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/router-hook.tsx b/frontend/src/router-hook.tsx index 7c52e581..a42c2daa 100644 --- a/frontend/src/router-hook.tsx +++ b/frontend/src/router-hook.tsx @@ -59,7 +59,7 @@ class RouterHook extends Logger { if (routes) { if (!routeList[routerIndex - 1]?.length || routeList[routerIndex - 1]?.length !== routes.size) { if (routeList[routerIndex - 1]?.length && routeList[routerIndex - 1].length !== routes.size) routerIndex--; - const newRouterArray: ReactElement[] = []; + const newRouterArray: (ReactElement | JSX.Element)[] = []; routes.forEach(({ component, props }, path) => { newRouterArray.push( <Route path={path} {...props}> |
