atmosphere explorer pds.ls
tool typescript atproto
434
fork

Configure Feed

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

resolve com.atproto.lexicon.schema

Juliet 0deef580 fa38b554

+3 -10
+3 -10
src/lib/schema-tab.tsx
··· 39 39 40 40 createEffect(() => { 41 41 const col = collection(); 42 - if ( 43 - showSchema() && 44 - !schema() && 45 - !loading() && 46 - !error() && 47 - col && 48 - col !== "com.atproto.lexicon.schema" 49 - ) { 42 + if (showSchema() && !schema() && !loading() && !error() && col) { 50 43 setLoading(true); 51 44 resolve(col as Nsid).then( 52 45 (result) => { ··· 73 66 fallbackSchema?: any; 74 67 }) => ( 75 68 <> 76 - <Show when={props.error}> 69 + <Show when={props.error && !props.fallbackSchema}> 77 70 <span class="mt-2">Lexicon schema could not be resolved.</span> 78 71 </Show> 79 72 <Show when={props.loading && !props.fallbackSchema}> ··· 82 75 <Show when={props.schema || props.fallbackSchema}> 83 76 <ErrorBoundary fallback={(err) => <div>Error: {err.message}</div>}> 84 77 <LexiconSchemaView 85 - schema={props.schema?.rawSchema ?? props.fallbackSchema} 78 + schema={props.fallbackSchema ?? props.schema?.rawSchema} 86 79 authority={props.authority} 87 80 /> 88 81 </ErrorBoundary>