Clean dead code in FieldArrayForm slice
This commit is contained in:
@@ -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 (
|
||||
<>
|
||||
{" "}
|
||||
|
||||
Reference in New Issue
Block a user