1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

fix comment edit form attaches

This commit is contained in:
Fedor Katurov 2023-10-30 21:49:37 +06:00
parent a26e4168fd
commit fb0926321e

View file

@ -18,7 +18,11 @@ interface CommentEditingFormProps {
const CommentEditingForm: FC<CommentEditingFormProps> = observer(
({ saveComment, comment, onCancelEdit }) => {
const uploader = useUploader(UploadSubject.Comment, UploadTarget.Comments);
const uploader = useUploader(
UploadSubject.Comment,
UploadTarget.Comments,
comment.files,
);
return (
<UploadDropzone onUpload={uploader.uploadFiles}>