1
0
Fork 0
mirror of synced 2024-09-30 09:07:25 +13:00
This commit is contained in:
mike12345567 2021-07-06 13:11:29 +01:00
parent ff99e1dcc6
commit 3cdd658ea0

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}