Fix crash when no linked records in DataTable
This commit is contained in:
parent
da1936fbbf
commit
47e9cd64cb
|
@ -100,7 +100,7 @@
|
||||||
{#if schema[header].type === 'attachment'}
|
{#if schema[header].type === 'attachment'}
|
||||||
<AttachmentList files={row[header]} />
|
<AttachmentList files={row[header]} />
|
||||||
{:else if schema[header].type === 'link'}
|
{: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}
|
{:else}
|
||||||
<td>{row[header] == null ? '' : row[header]}</td>
|
<td>{row[header] == null ? '' : row[header]}</td>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Loading…
Reference in New Issue