diff --git a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte index 752f291019..01b1fdda97 100644 --- a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte @@ -127,6 +127,7 @@ } function deleteColumn() { + field.name = deleteColName if (field.name === $tables.selected.primaryDisplay) { notifications.error("You cannot delete the display column") } else { @@ -470,16 +471,16 @@ onOk={deleteColumn} onCancel={hideDeleteDialog} title="Confirm Deletion" - disabled={deleteColName !== field.name} + disabled={deleteColName !== originalName} >
- Are you sure you wish to delete the column {field.name}? + Are you sure you wish to delete the column {originalName}? Your data will be deleted and this action cannot be undone - enter the column name to confirm.