diff --git a/src/views/pds.tsx b/src/views/pds.tsx index 59dd5d8..d36ba4c 100644 --- a/src/views/pds.tsx +++ b/src/views/pds.tsx @@ -205,7 +205,7 @@ const PdsView = () => { const params = useParams(); const hidden = () => !!params.repo; const location = useLocation(); - setPDS(params.pds); + if (params.pds !== "at:") setPDS(params.pds); const pds = params.pds!.startsWith("localhost") ? `http://${params.pds}` : `https://${params.pds}`; const rpc = new Client({ handler: simpleFetchHandler({ service: pds }) }); diff --git a/src/views/repo/index.tsx b/src/views/repo/index.tsx index 7308647..e76e148 100644 --- a/src/views/repo/index.tsx +++ b/src/views/repo/index.tsx @@ -40,9 +40,9 @@ import { createLatch } from "../../lib/create-latch.js"; import { useFilterShortcut } from "../../lib/keyboard.js"; import { RepoProvider, useRepo } from "../../lib/repo-context.jsx"; import { BlobView } from "../blob.jsx"; +import { plcDirectory } from "../settings.jsx"; import { IdentityView } from "./identity.jsx"; import { PlcLogView } from "./logs.jsx"; -import { plcDirectory } from "../settings.jsx"; export const repoPreload: RoutePreloadFunc = ({ params }) => { if (params.repo?.startsWith("did:")) void getPDS(params.repo); @@ -83,6 +83,7 @@ export const RepoLayout = (props: RouteSectionProps) => { return id?.startsWith("did:") ? id : undefined; }, async (did) => { + setPDS(undefined); try { const pdsUrl = await getPDS(did); const rpc = new Client({ handler: simpleFetchHandler({ service: pdsUrl }) });