From 194cf296e5bb70e9472f3881f4d40e21b323f976 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Tue, 1 Jun 2021 16:50:02 +0100 Subject: [PATCH] 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` --- ghost/admin/app/components/modal-select-user-role.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/admin/app/components/modal-select-user-role.js b/ghost/admin/app/components/modal-select-user-role.js index 4ece7edfba..8f63a3c7ce 100644 --- a/ghost/admin/app/components/modal-select-user-role.js +++ b/ghost/admin/app/components/modal-select-user-role.js @@ -33,7 +33,7 @@ export default class ModalPostPreviewComponent extends ModalBase { // needed because ModalBase uses .send() for keyboard events closeModal() { - this.args.close(); + this.close(); } } }