0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Fixed "this.args is undefined" error when pressing Escape to close roles modal

no issue

- the modal component is using a native class but with the `@classic` decorator so it's still using pre-Glimmer component syntax where `this.args` doesn't exist
- fixes Sentry error `ADMIN-4C`
This commit is contained in:
Kevin Ansfield 2021-06-01 16:50:02 +01:00
parent 66f6d25d4b
commit 194cf296e5

View file

@ -33,7 +33,7 @@ export default class ModalPostPreviewComponent extends ModalBase {
// needed because ModalBase uses .send() for keyboard events
closeModal() {
this.args.close();
this.close();
}
}
}