From 6539d9afe0699056161158dd7bb9c9d3f7b533c0 Mon Sep 17 00:00:00 2001 From: Mohamed Khelif Date: Wed, 27 Mar 2024 15:11:28 -0400 Subject: [PATCH] Type tabs --- .../configurePatchCore/useConfigurePatch/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/configurePatch/configurePatchCore/useConfigurePatch/index.ts b/src/pages/configurePatch/configurePatchCore/useConfigurePatch/index.ts index 634ceea7f5..eb0adaadc6 100644 --- a/src/pages/configurePatch/configurePatchCore/useConfigurePatch/index.ts +++ b/src/pages/configurePatch/configurePatchCore/useConfigurePatch/index.ts @@ -125,7 +125,7 @@ interface HookResult extends ConfigurePatchState { const useConfigurePatch = (patch: ConfigurePatchQuery["patch"]): HookResult => { const navigate = useNavigate(); const location = useLocation(); - const { [slugs.tab]: tab } = useParams(); + const { [slugs.tab]: tab } = useParams<{ [slugs.tab]: PatchTab }>(); const { id, project } = patch; const { variants } = project;