From 0ec5215274341ce1cf965705050e68b6ea1e6dde Mon Sep 17 00:00:00 2001 From: hetao92 <18328704+hetao92@users.noreply.github.com> Date: Mon, 13 Mar 2023 08:41:14 +0000 Subject: [PATCH] fix: fix delimiter apply before upload file --- app/pages/Import/FileList/UploadConfigModal/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) });