Skip to content

Commit

Permalink
Fix Parsed tab error
Browse files Browse the repository at this point in the history
Fix error where Parsed tab's code block doesn't update after navigating
  • Loading branch information
dillonredding committed Apr 2, 2023
1 parent 5723cfc commit 5e3bbab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ export const Main: Component = () => {
{error()!.message}
</Message>
</Match>
<Match when={entity()}>
<CodeBlock>{JSON.stringify(entity(), null, 2)}</CodeBlock>
<Match when={entity()} keyed>
{(entity) => <CodeBlock>{JSON.stringify(entity, null, 2)}</CodeBlock>}
</Match>
</Switch>
</Match>
Expand Down

0 comments on commit 5e3bbab

Please # to comment.