Don't hide errors on the frontend

This commit is contained in:
adrinr 2023-02-27 13:17:05 +01:00
parent 07b874d30f
commit b231311a87
1 changed files with 2 additions and 2 deletions

View File

@ -192,13 +192,13 @@
editableColumn.name = originalName editableColumn.name = originalName
} }
function deleteColumn() { async function deleteColumn() {
try { try {
editableColumn.name = deleteColName editableColumn.name = deleteColName
if (editableColumn.name === $tables.selected.primaryDisplay) { if (editableColumn.name === $tables.selected.primaryDisplay) {
notifications.error("You cannot delete the display column") notifications.error("You cannot delete the display column")
} else { } else {
tables.deleteField(editableColumn) await tables.deleteField(editableColumn)
notifications.success(`Column ${editableColumn.name} deleted.`) notifications.success(`Column ${editableColumn.name} deleted.`)
confirmDeleteDialog.hide() confirmDeleteDialog.hide()
hide() hide()