Skip to content

Commit bea9ac7

Browse files
committed
fix(components/Modal): dont break in desktop ui
1 parent 063dedb commit bea9ac7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Modal.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const showModal = (
5050
bHideMainWindowForPopouts: false,
5151
},
5252
): ShowModalResult => {
53-
return showModalRaw(modal, parent || findSP(), props.strTitle, props, undefined, {
53+
return showModalRaw(modal, parent || findSP() || window, props.strTitle, props, undefined, {
5454
bHideActions: props.bHideActionIcons,
5555
});
5656
};

0 commit comments

Comments
 (0)