fix: Modal opening or closing type error (#18913)

fix for sometimes widget not available
This commit is contained in:
Hetu Nandu 2022-12-13 15:34:32 +05:30 committed by GitHub
parent 973d46aaef
commit c5ae0521ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -419,7 +419,7 @@ function* openOrCloseModalSaga(
const widget = widgetMap[action.payload.widgetId];
if (widget.parentId) {
if (widget && widget.parentId) {
const widgetInModal = modalWidgetIds.includes(widget.parentModalId);
if (widgetInModal) {
yield put(showModal(widget.parentModalId));