We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 778a74d commit b78a751Copy full SHA for b78a751
1 file changed
https/front/components/PostForm.js
@@ -47,14 +47,14 @@ const PostForm = () => {
47
type: UPLOAD_IMAGES_REQUEST,
48
data: imageFormData,
49
});
50
- });
+ }, []);
51
52
const onRemoveImage = useCallback((index) => () => {
53
dispatch({
54
type: REMOVE_IMAGE,
55
data: index,
56
57
58
59
return (
60
<Form style={{ margin: '10px 0 20px' }} encType="multipart/form-data" onFinish={onSubmit}>
0 commit comments