mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 02:23:31 -06:00
Canvas: Button API update toaster error message (#76988)
This commit is contained in:
parent
4e8c4869d1
commit
4df4844c1d
@ -23,7 +23,8 @@ export const callApi = (api: APIEditorConfig, updateLoadingStateCallback?: IsLoa
|
||||
.fetch(request)
|
||||
.subscribe({
|
||||
error: (error) => {
|
||||
appEvents.emit(AppEvents.alertError, ['An error has occurred: ', JSON.stringify(error)]);
|
||||
appEvents.emit(AppEvents.alertError, ['An error has occurred. Check console output for more details.']);
|
||||
console.error('API call error: ', error);
|
||||
updateLoadingStateCallback && updateLoadingStateCallback(false);
|
||||
},
|
||||
complete: () => {
|
||||
|
Loading…
Reference in New Issue
Block a user