From f9f39a94c83be74d5c9c4ec46bc3351ede5627a9 Mon Sep 17 00:00:00 2001 From: muerwre Date: Wed, 7 Aug 2019 17:56:14 +0700 Subject: [PATCH] just made it --- src/components/editors/ImageEditor/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/editors/ImageEditor/index.tsx b/src/components/editors/ImageEditor/index.tsx index 2627fdb6..98f02c92 100644 --- a/src/components/editors/ImageEditor/index.tsx +++ b/src/components/editors/ImageEditor/index.tsx @@ -88,7 +88,7 @@ const ImageEditorUnconnected: FC = ({ data, setData, uploadUploadFiles, console.log(`${id} uploaded`); // do setData to append this file setData({ ...data, files: [...data.files, files[status.uuid]] }); - setTemp(temp.filter(el => el === id)); + setTemp(temp.filter(el => el !== id)); } }); }, [statuses, files]);