mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
fix comment edit form attaches
This commit is contained in:
parent
a26e4168fd
commit
fb0926321e
1 changed files with 5 additions and 1 deletions
|
@ -18,7 +18,11 @@ interface CommentEditingFormProps {
|
||||||
|
|
||||||
const CommentEditingForm: FC<CommentEditingFormProps> = observer(
|
const CommentEditingForm: FC<CommentEditingFormProps> = observer(
|
||||||
({ saveComment, comment, onCancelEdit }) => {
|
({ saveComment, comment, onCancelEdit }) => {
|
||||||
const uploader = useUploader(UploadSubject.Comment, UploadTarget.Comments);
|
const uploader = useUploader(
|
||||||
|
UploadSubject.Comment,
|
||||||
|
UploadTarget.Comments,
|
||||||
|
comment.files,
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<UploadDropzone onUpload={uploader.uploadFiles}>
|
<UploadDropzone onUpload={uploader.uploadFiles}>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue