Don't hide errors on the frontend
This commit is contained in:
parent
07b874d30f
commit
b231311a87
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue