Skip to content

Commit ba0c153

Browse files
fix(inscription): Object Type appeared empty on the Inscription overview when the TEI had no data for it
1 parent 0148418 commit ba0c153

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,4 @@ dist
141141
# Temporary files
142142
_*
143143
/tmp
144+
data/petrography/compare-csv-headers.py

frontend/src/lib/components/inscription/InscriptionOverview.svelte

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,15 @@
9090
<dd>{metadata?.textLang?._ || config.EMPTY_PLACEHOLDER}</dd>
9191
9292
<dt>Object type</dt>
93-
{#if metadata?.objectType}
94-
<dd>
95-
{#if metadata?.objectType?.ref}
96-
<a class="badge strong" href={metadata.objectType.ref}
97-
>{metadata.objectType?._ || config.EMPTY_PLACEHOLDER}</a
98-
>
99-
{:else}
100-
{metadata?.objectType?._ || config.EMPTY_PLACEHOLDER}
101-
{/if}
102-
</dd>
103-
{/if}
93+
<dd>
94+
{#if metadata?.objectType?.ref}
95+
<a class="badge strong" href={metadata.objectType.ref}
96+
>{metadata.objectType?._ || config.EMPTY_PLACEHOLDER}</a
97+
>
98+
{:else}
99+
{metadata?.objectType?._ || config.EMPTY_PLACEHOLDER}
100+
{/if}
101+
</dd>
104102
105103
<dt>Text type</dt>
106104
<dd class="inscription-type">

0 commit comments

Comments
 (0)