Skip to content

Commit b78a751

Browse files
authored
Update PostForm.js
1 parent 778a74d commit b78a751

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

https/front/components/PostForm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ const PostForm = () => {
4747
type: UPLOAD_IMAGES_REQUEST,
4848
data: imageFormData,
4949
});
50-
});
50+
}, []);
5151

5252
const onRemoveImage = useCallback((index) => () => {
5353
dispatch({
5454
type: REMOVE_IMAGE,
5555
data: index,
5656
});
57-
});
57+
}, []);
5858

5959
return (
6060
<Form style={{ margin: '10px 0 20px' }} encType="multipart/form-data" onFinish={onSubmit}>

0 commit comments

Comments
 (0)