1
0
Fork 0
mirror of synced 2024-07-14 10:45:51 +12:00

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

View file

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