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:
parent
66f6d25d4b
commit
194cf296e5
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ export default class ModalPostPreviewComponent extends ModalBase {
|
|||
|
||||
// needed because ModalBase uses .send() for keyboard events
|
||||
closeModal() {
|
||||
this.args.close();
|
||||
this.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue