fix(components/Modal): dont break in desktop ui

This commit is contained in:
AAGaming
2024-10-04 23:51:49 -04:00
parent 063dedbbc1
commit bea9ac7774

View File

@@ -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,
});
};