fix(web): remove unnecessary type assertion in _code route

Quentin Gliech and Claude Opus 4.6 (1M context) created

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Change summary

webui2/src/routes/$repo/_code.tsx | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)

Detailed changes

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 ?? "";