From a8b47baa5a94b87f35acbfd508a394a3ac2c7186 Mon Sep 17 00:00:00 2001 From: mrjvs Date: Sun, 29 Oct 2023 22:22:27 +0100 Subject: [PATCH] fix warning in console --- src/components/overlays/OverlayRouter.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/overlays/OverlayRouter.tsx b/src/components/overlays/OverlayRouter.tsx index 4930df9d..b7afffe0 100644 --- a/src/components/overlays/OverlayRouter.tsx +++ b/src/components/overlays/OverlayRouter.tsx @@ -54,7 +54,7 @@ function RouterBase(props: { id: string; children: ReactNode }) { api.set({ width: "100%", }); - api({ + api.start({ height: `${routeMeta?.height ?? 0}px`, }); } else if (oldData?.height === undefined && data.height !== undefined) { @@ -63,7 +63,7 @@ function RouterBase(props: { id: string; children: ReactNode }) { width: `${routeMeta?.width ?? 0}px`, }); } else { - api({ + api.start({ height: `${routeMeta?.height ?? 0}px`, width: `${routeMeta?.width ?? 0}px`, });