mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-17 08:47:49 +00:00
fix calibration menu in controller settings
This commit is contained in:
@@ -41,10 +41,10 @@ class RouterHook extends Logger {
|
|||||||
const DeckyWrapper = ({ children }: { children: ReactElement }) => {
|
const DeckyWrapper = ({ children }: { children: ReactElement }) => {
|
||||||
const { routes } = useDeckyRouterState();
|
const { routes } = useDeckyRouterState();
|
||||||
|
|
||||||
const routerIndex = children.props.children[0].props.children.length - 1;
|
const routerIndex = children.props.children[0].props.children.length;
|
||||||
if (
|
if (
|
||||||
!children.props.children[0].props.children[routerIndex].length ||
|
!children.props.children[0].props.children[routerIndex]?.length ||
|
||||||
children.props.children[0].props.children !== routes.size
|
children.props.children[0].props.children[routerIndex].length !== routes.size
|
||||||
) {
|
) {
|
||||||
const newRouterArray: ReactElement[] = [];
|
const newRouterArray: ReactElement[] = [];
|
||||||
routes.forEach(({ component, props }, path) => {
|
routes.forEach(({ component, props }, path) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user