atproto explorer pdsls.dev
atproto tool

default to identity tab when error

juli.ee 99aebb6a ed34ac44

verified
Changed files
+4 -4
src
views
+4 -4
src/views/repo.tsx
···
"flex flex-1 items-center border-b-2": true,
"border-transparent group-hover:border-neutral-400 dark:group-hover:border-neutral-600":
(location.hash !== `#${props.tab}` && !!location.hash) ||
-
(!location.hash && props.tab !== "collections"),
+
(!location.hash &&
+
((!error() && props.tab !== "collections") ||
+
(!!error() && props.tab !== "identity"))),
}}
>
{props.label}
···
if (!pds) {
setError("Missing PDS");
-
navigate(`/at://${params.repo}#identity`);
return {};
}
···
default:
setError("Unreachable");
}
-
navigate(`/at://${params.repo}#identity`);
}
return res.data;
···
</For>
</div>
</Show>
-
<Show when={location.hash === "#identity"}>
+
<Show when={location.hash === "#identity" || (error() && !location.hash)}>
<Show when={didDoc()}>
{(didDocument) => (
<div class="flex flex-col gap-y-1 wrap-anywhere">