From 9995c1f39186a75f1d08b019531055036cc96da2 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Sun, 5 Apr 2026 10:17:08 +0200 Subject: [PATCH] fix(web): remove unnecessary type assertion in _code route Co-Authored-By: Claude Opus 4.6 (1M context) --- webui2/src/routes/$repo/_code.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 ?? "";