This commit is contained in:
mike12345567 2021-07-06 13:11:29 +01:00
parent ff99e1dcc6
commit 3cdd658ea0
1 changed files with 3 additions and 1 deletions

View File

@ -245,7 +245,9 @@
{:else if fromRelationship?.relationshipType && toTable}
<Select
label={`Foreign Key (${toTable?.name})`}
options={Object.keys(toTable?.schema).filter(field => toTable?.primary.indexOf(field) === -1)}
options={Object.keys(toTable?.schema).filter(
field => toTable?.primary.indexOf(field) === -1
)}
on:change={() => ($touched.foreign = true)}
bind:error={errors.foreign}
bind:value={fromRelationship.fieldName}