mirror of
https://github.com/discourse/discourse.git
synced 2025-04-13 13:19:11 +08:00
FIX: correctly makes this
accessible in the scope (#23146)
This commit is contained in:
parent
51e369a2c6
commit
4661bcb5ea
@ -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]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user