.then(str => this.toast.success(str));
this.grid.reload();
},
- err => {
- this.createErrString.current()
- .then(str => this.toast.danger(str));
+ rejection => {
+ if (!rejection.dismissed) {
+ this.createErrString.current()
+ .then(str => this.toast.danger(str));
+ }
}
);
};
.then(str => this.toast.success(str));
this.grid.reload();
},
- err => {
- this.updateFailedString.current()
- .then(str => this.toast.danger(str));
+ rejection => {
+ if (!rejection.dismissed) {
+ this.updateFailedString.current()
+ .then(str => this.toast.danger(str));
+ }
}
);
}