Clean dead code in FieldArrayForm slice

This commit is contained in:
2026-04-07 14:27:31 +01:00
parent dcdec08f6d
commit 5e992507de
2 changed files with 29 additions and 9 deletions
-9
View File
@@ -1579,13 +1579,10 @@ const RenderFileUpload = (field) => {
export const FieldArrayForm = (props) => {
const {
name,
label,
validation,
form,
formProps,
parentFieldShowOnValue,
parentField,
maxFieldLength,
maxSubField
} = props;
@@ -1599,18 +1596,12 @@ export const FieldArrayForm = (props) => {
formProps[form].values[parentField].toString()
) > -1;
(showIfHasParentShowValue == parentField) != false &&
showIfHasParentShowValue;
useEffect(() => {
if (!showIfHasParentShowValue) {
dispatch(change("appealForm", name, null));
}
}, [dispatch, name, showIfHasParentShowValue]);
parentFieldShowOnValue;
const { handleSubmit, pristine, reset, submitting } = props;
return (
<>
{" "}