Handle 'cannotExportFile' + fix forms

This commit is contained in:
Weves
2024-10-14 08:25:39 -07:00
committed by Chris Weaver
parent 3ccd951307
commit 9537a2581e
2 changed files with 21 additions and 4 deletions

View File

@@ -8,13 +8,12 @@ interface ListInputProps {
}
const ListInput: React.FC<ListInputProps> = ({ field }) => {
const { values } = useFormikContext();
const { values } = useFormikContext<any>();
return (
<TextArrayField
name={field.name}
label={field.label}
values={Array.isArray(values) ? values : []}
values={values}
subtext={field.description}
placeholder={`Enter ${field.label.toLowerCase()}`}
/>