From b119c4c2b627436be8f3fbfb9b119cf68b5486ee Mon Sep 17 00:00:00 2001 From: Miguel Vieira Date: Fri, 19 Jul 2024 16:34:03 +0100 Subject: [PATCH] fix(frontend): check object type exists --- frontend/src/lib/components/InscriptionCard.svelte | 2 +- frontend/src/lib/components/InscriptionTableRow.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/InscriptionCard.svelte b/frontend/src/lib/components/InscriptionCard.svelte index 69ccc6a84e2..4e07ad58c7d 100644 --- a/frontend/src/lib/components/InscriptionCard.svelte +++ b/frontend/src/lib/components/InscriptionCard.svelte @@ -45,7 +45,7 @@
{inscription.type?._ || 'N/A'}
{/if}
Object type
- {#if inscription.objectType.ref} + {#if inscription.objectType?.ref}
{inscription.objectType?._}
{:else}
{inscription.objectType?._ || 'N/A'}
diff --git a/frontend/src/lib/components/InscriptionTableRow.svelte b/frontend/src/lib/components/InscriptionTableRow.svelte index 81f1001d269..da6094f4a6b 100644 --- a/frontend/src/lib/components/InscriptionTableRow.svelte +++ b/frontend/src/lib/components/InscriptionTableRow.svelte @@ -20,7 +20,7 @@ {/if} - {#if inscription.objectType.ref} + {#if inscription.objectType?.ref} {inscription.objectType?._} {:else} {inscription.objectType?._ || 'N/A'}