diff --git a/webui2/src/routes/$repo/_code.tsx b/webui2/src/routes/$repo/_code.tsx index 9ebc43fa06ec2d9f8c462c52965202ba5ba48451..575b155fe07171ac618df1f9a94cb2d5c29a9c09 100644 --- a/webui2/src/routes/$repo/_code.tsx +++ b/webui2/src/routes/$repo/_code.tsx @@ -33,10 +33,7 @@ function CodeLayout() { const repoName = refsData?.repository?.name ?? repoRef ?? "default-repo"; // Read child route params (ref and splat path) - const allParams = useParams({ strict: false }) as { - ref?: string; - _splat?: string; - }; + const allParams = useParams({ strict: false }); const currentRef = allParams.ref ?? ""; const currentPath = allParams._splat ?? "";