Fix crash when no linked records in DataTable

This commit is contained in:
Andrew Kingston 2020-10-12 18:47:25 +01:00
parent 0ec10acc43
commit 9f3eef5b8c
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@
{#if schema[header].type === 'attachment'}
<AttachmentList files={row[header]} />
{:else if schema[header].type === 'link'}
<td>{row[header].length} related row(s)</td>
<td>{row[header] ? row[header].length : 0} related row(s)</td>
{:else}
<td>{row[header] == null ? '' : row[header]}</td>
{/if}