Add error notification if executing a query in a button action fails

This commit is contained in:
Andrew Kingston 2022-02-25 21:29:02 +00:00
parent eb27ac368a
commit 3ba195960b
1 changed files with 4 additions and 0 deletions

View File

@ -133,6 +133,10 @@ const queryExecutionHandler = async action => {
return { result }
} catch (error) {
notificationStore.actions.error(
"An error occurred while executing the query"
)
// Abort next actions
return false
}