Fix: TypeError: e is undefined (#3337)
* add conditional operator * check for widget before calling the function * check for widget exisitence Co-authored-by: Pawan Kumar <pawankumar@Pawans-MacBook-Pro.local>
This commit is contained in:
parent
71f4a4b0a9
commit
220b28df3e
|
|
@ -896,6 +896,10 @@ function* batchUpdateWidgetPropertySaga(
|
|||
const { modify = {}, remove = [] } = updates;
|
||||
|
||||
const stateWidget: WidgetProps = yield select(getWidget, widgetId);
|
||||
|
||||
// if there is no widget in the state, don't do anything
|
||||
if (!stateWidget) return;
|
||||
|
||||
let widget = cloneDeep(stateWidget);
|
||||
try {
|
||||
if (Object.keys(modify).length > 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user