atmosphere explorer
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

show missing PDS in record view

Juliet 1e275a1e be475d43

+10 -7
+10 -5
src/utils/api.ts
··· 101 101 }; 102 102 103 103 const resolvePDS = async (did: string) => { 104 - setPDS(undefined); 105 - const pds = await getPDS(did); 106 - if (!pds) throw new Error("No PDS found"); 107 - setPDS(pds.replace("https://", "").replace("http://", "")); 108 - return pds; 104 + try { 105 + setPDS(undefined); 106 + const pds = await getPDS(did); 107 + if (!pds) throw new Error("No PDS found"); 108 + setPDS(pds.replace("https://", "").replace("http://", "")); 109 + return pds; 110 + } catch (err) { 111 + setPDS("Missing PDS"); 112 + throw err; 113 + } 109 114 }; 110 115 111 116 const resolveLexiconAuthority = async (nsid: Nsid) => {
-2
src/views/repo.tsx
··· 23 23 MenuSeparator, 24 24 NavMenu, 25 25 } from "../components/dropdown.jsx"; 26 - import { setPDS } from "../components/navbar.jsx"; 27 26 import { 28 27 addNotification, 29 28 removeNotification, ··· 144 143 145 144 if (!pds) { 146 145 setError("Missing PDS"); 147 - setPDS("Missing PDS"); 148 146 return {}; 149 147 } 150 148