Browse Source

Merge pull request #682 from Budibase/fix/table-linked-record-display

Fix issue displaying linked records in a table
pull/4023/head
Andrew Kingston 6 years ago
committed by GitHub
parent
commit
384686c8ec
  1. 2
      packages/standard-components/src/DataTable.svelte

2
packages/standard-components/src/DataTable.svelte

@ -99,7 +99,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] ? row[header].length : 0} related row(s)</td> <td>{row[header]} related row(s)</td>
{:else if row[header]} {:else if row[header]}
<td>{row[header]}</td> <td>{row[header]}</td>
{/if} {/if}

Loading…
Cancel
Save