Skip to content

Commit

Permalink
fix(frontend): check object type exists
Browse files Browse the repository at this point in the history
  • Loading branch information
jmiguelv committed Jul 19, 2024
1 parent b80f7aa commit b119c4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/lib/components/InscriptionCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<dd>{inscription.type?._ || 'N/A'}</dd>
{/if}
<dt>Object type</dt>
{#if inscription.objectType.ref}
{#if inscription.objectType?.ref}
<dd><a href={inscription.objectType.ref}>{inscription.objectType?._}</a></dd>
{:else}
<dd>{inscription.objectType?._ || 'N/A'}</dd>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/components/InscriptionTableRow.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{/if}
</td>
<td>
{#if inscription.objectType.ref}
{#if inscription.objectType?.ref}
<a href={inscription.objectType.ref}>{inscription.objectType?._}</a>
{:else}
{inscription.objectType?._ || 'N/A'}
Expand Down

0 comments on commit b119c4c

Please sign in to comment.