FIX: correctly makes this accessible in the scope (#23146)

This commit is contained in:
Joffrey JAFFEUX 2023-08-18 17:20:59 +02:00 committed by GitHub
parent 51e369a2c6
commit 4661bcb5ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -203,7 +203,7 @@ export default class History extends Component {
}
this.args.closeModal();
})
.catch(function (e) {
.catch((e) => {
if (e.jqXHR.responseJSON?.errors?.[0]) {
this.dialog.alert(e.jqXHR.responseJSON.errors[0]);
}