alternative tangled frontend (extremely wip)

fix: simple early returns

+4
+4
src/lib/queries/resolve-pinned-repos.ts
··· 6 6 import { z } from "zod/v4"; 7 7 8 8 export const resolvePinnedRepos = async (uris: string[]) => { 9 + if (uris.length === 0) return []; 10 + 9 11 const sanitisedUris = uris.filter((uri) => { 10 12 if (!uri.startsWith("at://")) return false; 11 13 if (uri.split("/")[3] !== "sh.tangled.repo") return false; 12 14 if (uri.split("/").length !== 5) return false; 13 15 return true; 14 16 }); 17 + 18 + if (sanitisedUris.length === 0) return []; 15 19 16 20 const params = new URLSearchParams(); 17 21 sanitisedUris.forEach((uri) => {