Skip to content

Commit 1b5be39

Browse files
authored
Update PostForm.js
1 parent b78a751 commit 1b5be39

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ch6/front/components/PostForm.js

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

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

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

0 commit comments

Comments
 (0)