fix: for in null check sentry bug (#8150)

This commit is contained in:
arunvjn 2021-10-04 15:11:25 +05:30 committed by Arpit Mohan
parent 8d6aa6a848
commit d8ee310ee2

View File

@ -43,8 +43,9 @@ export const getBindingPathsOfAction = (
}
}
if (formConfig.controlType === "ARRAY_FIELD") {
const actionValue = _.get(action, formConfig.configProperty);
let actionValue = _.get(action, formConfig.configProperty);
if (Array.isArray(actionValue)) {
actionValue = actionValue.filter((val) => val);
for (let i = 0; i < actionValue.length; i++) {
formConfig.schema.forEach((schemaField: any) => {
if (