diff --git a/src/fireedge/src/client/components/Forms/FormWithSchema.js b/src/fireedge/src/client/components/Forms/FormWithSchema.js index 60c3b3fd21..ef1d5d8839 100644 --- a/src/fireedge/src/client/components/Forms/FormWithSchema.js +++ b/src/fireedge/src/client/components/Forms/FormWithSchema.js @@ -172,12 +172,6 @@ const FieldComponent = memo(({ id, cy, dependOf, ...attributes }) => { defaultValue: Array.isArray(dependOf) ? [] : undefined, }) - /* const valueOfDependField = useMemo(() => { - if (!dependOf) return null - - return watch(nameOfDependField) - }, [dependOf, watch, nameOfDependField]) */ - const { name, type, htmlType, grid, ...fieldProps } = Object.entries( attributes ).reduce((field, attribute) => {