1
0
Fork 0
mirror of synced 2024-07-07 07:15:43 +12:00

Merge pull request #4838 from mslourens/data_source_modal_error_handling

show correct error and keep modal open
This commit is contained in:
Martin McKeaveney 2022-03-08 11:59:01 +01:00 committed by GitHub
commit 5921b247d6

View file

@ -20,7 +20,9 @@
$goto(`./datasource/${resp._id}`)
notifications.success(`Datasource updated successfully.`)
} catch (err) {
notifications.error("Error saving datasource")
notifications.error(err?.message ?? "Error saving datasource")
// prevent the modal from closing
return false
}
}