diff --git a/packages/builder/src/helpers/validation/yup/index.js b/packages/builder/src/helpers/validation/yup/index.js index b5bdf030a5..4e84975eb7 100644 --- a/packages/builder/src/helpers/validation/yup/index.js +++ b/packages/builder/src/helpers/validation/yup/index.js @@ -58,7 +58,7 @@ export const createValidationStore = () => { const observe = async (propertyName, value) => { const values = get(validation).values let fieldIsValid - if (!values.hasOwnProperty(propertyName)) { + if (!Object.prototype.hasOwnProperty.call(values, propertyName)) { // Initial setup values[propertyName] = value return