Add error notification if executing a query in a button action fails
This commit is contained in:
parent
eb27ac368a
commit
3ba195960b
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue