diff --git a/packages/standard-components/src/LinkedRowSelector.svelte b/packages/standard-components/src/LinkedRowSelector.svelte deleted file mode 100644 index a2956d6b93..0000000000 --- a/packages/standard-components/src/LinkedRowSelector.svelte +++ /dev/null @@ -1,59 +0,0 @@ - - -{#if linkedTable != null} - {#if linkedTable.primaryDisplay == null} - {#if showLabel} - - {/if} - - {:else} - - {#each allRows as row} - - {/each} - - {/if} -{/if} diff --git a/packages/standard-components/src/forms/RelationshipField.svelte b/packages/standard-components/src/forms/RelationshipField.svelte index f09595606f..8109283f6e 100644 --- a/packages/standard-components/src/forms/RelationshipField.svelte +++ b/packages/standard-components/src/forms/RelationshipField.svelte @@ -24,7 +24,7 @@ $: fetchTable(linkedTableId) const fetchTable = async id => { - if (id != null) { + if (id) { const result = await API.fetchTableDefinition(id) if (!result.error) { tableDefinition = result @@ -33,7 +33,7 @@ } const fetchRows = async id => { - if (id != null) { + if (id) { const rows = await API.fetchTableData(id) options = rows && !rows.error ? rows : [] }