PK editor iun column editor

This commit is contained in:
Jan Prochazka
2021-06-17 11:13:28 +02:00
parent 17fc6ccc2e
commit b8ccae570e
2 changed files with 2 additions and 9 deletions

View File

@@ -22,15 +22,7 @@
</script>
<FormProvider
initialValues={{
...columnInfo,
isPrimaryKey:
!!columnInfo &&
!!tableInfo?.primaryKey &&
!!tableInfo.primaryKey.columns.find(x => x.columnName == columnInfo.columnName),
}}
>
<FormProvider initialValues={columnInfo}>
<ModalBase {...$$restProps}>
<svelte:fragment slot="header"
>{columnInfo ? 'Edit column' : `Add column ${(tableInfo?.columns || []).length + 1}`}</svelte:fragment