diff --git a/packages/builder/src/components/common/LinkedRowSelector.svelte b/packages/builder/src/components/common/LinkedRowSelector.svelte index 5cacd7c236..5338289ab5 100644 --- a/packages/builder/src/components/common/LinkedRowSelector.svelte +++ b/packages/builder/src/components/common/LinkedRowSelector.svelte @@ -8,8 +8,6 @@ export let schema export let linkedRows = [] - console.log(schema) - console.log(linkedRows) let rows = [] $: label = capitalise(schema.name) @@ -34,11 +32,8 @@ return row[linkedTable.primaryDisplay || "_id"] } - let oneToManyRow = getPrettyName(linkedRows[0]) || '' - - function oneToManyValueSetter(value) { - linkedRows = [value] - } + $: console.log(rows) + $: console.log(linkedRows) {#if linkedTable.primaryDisplay == null} @@ -50,10 +45,10 @@ {:else} {#if schema.oneToMany} - linkedRows = [e.target.value]} name={label} {label}> {#each rows as row} - + {/each} {:else}