fix: Modal opening or closing type error (#18913)
fix for sometimes widget not available
This commit is contained in:
parent
973d46aaef
commit
c5ae0521ec
|
|
@ -419,7 +419,7 @@ function* openOrCloseModalSaga(
|
||||||
|
|
||||||
const widget = widgetMap[action.payload.widgetId];
|
const widget = widgetMap[action.payload.widgetId];
|
||||||
|
|
||||||
if (widget.parentId) {
|
if (widget && widget.parentId) {
|
||||||
const widgetInModal = modalWidgetIds.includes(widget.parentModalId);
|
const widgetInModal = modalWidgetIds.includes(widget.parentModalId);
|
||||||
if (widgetInModal) {
|
if (widgetInModal) {
|
||||||
yield put(showModal(widget.parentModalId));
|
yield put(showModal(widget.parentModalId));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user