Skip to content

Commit

Permalink
Check if axios is cancel, don't show the error
Browse files Browse the repository at this point in the history
  • Loading branch information
doracretu3pillar committed Jul 3, 2024
1 parent 39f7546 commit 62d03c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/app/percona/shared/helpers/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class ApiRequest {
.get<T>(path, query)
.then((response): T => response.data)
.catch((e) => {
if (!disableNotifications) {
if (!disableNotifications && !axios.isCancel(e)) {
appEvents.emit(AppEvents.alertError, [e.message]);
}
throw e;
Expand Down

0 comments on commit 62d03c8

Please sign in to comment.