diff --git a/src/components/Modal.ts b/src/components/Modal.ts index e0df9e0..9f98e12 100755 --- a/src/components/Modal.ts +++ b/src/components/Modal.ts @@ -50,7 +50,7 @@ export const showModal = ( bHideMainWindowForPopouts: false, }, ): ShowModalResult => { - return showModalRaw(modal, parent || findSP(), props.strTitle, props, undefined, { + return showModalRaw(modal, parent || findSP() || window, props.strTitle, props, undefined, { bHideActions: props.bHideActionIcons, }); };