diff --git a/packages/builder/src/components/backend/TableNavigator/popovers/EditTablePopover.svelte b/packages/builder/src/components/backend/TableNavigator/popovers/EditTablePopover.svelte index f69a5942a0..91aa9f07d8 100644 --- a/packages/builder/src/components/backend/TableNavigator/popovers/EditTablePopover.svelte +++ b/packages/builder/src/components/backend/TableNavigator/popovers/EditTablePopover.svelte @@ -44,7 +44,10 @@ function checkValid(evt) { const tableName = evt.target.value - if (originalName !== tableName && $backendUiStore.models?.some(model => model.name === tableName)) { + if ( + originalName !== tableName && + $backendUiStore.models?.some(model => model.name === tableName) + ) { error = `Table with name ${tableName} already exists. Please choose another name.` return } @@ -59,11 +62,12 @@ {#if editing}
Edit Table
- + {error} />