diff --git a/packages/client/src/components/MkModalWindow.vue b/packages/client/src/components/MkModalWindow.vue index 31943d1f3e..d947803dd6 100644 --- a/packages/client/src/components/MkModalWindow.vue +++ b/packages/client/src/components/MkModalWindow.vue @@ -93,9 +93,7 @@ let rootEl = $shallowRef(); let headerEl = $shallowRef(); const close = (ev) => { - if (modal != null) { - modal.close(ev); - } + modal?.close(ev); }; const onBgClick = () => {