diff --git a/app/pages/Import/FileList/UploadConfigModal/index.tsx b/app/pages/Import/FileList/UploadConfigModal/index.tsx index 5f91b9b4..9df158c5 100644 --- a/app/pages/Import/FileList/UploadConfigModal/index.tsx +++ b/app/pages/Import/FileList/UploadConfigModal/index.tsx @@ -117,7 +117,7 @@ const UploadConfigModal = (props: IProps) => { }, []); const updateAllDelimiter = useCallback((value: string) => { - const { data } = state; + const { data, setState } = state; setState({ data: data.map(item => (item.delimiter = value, item)) });