Browse Source

fix(nc-gui): form attachment visibility issue on upload (#7929)

pull/7905/head
Ramesh Mane 7 months ago committed by GitHub
parent
commit
d153eb839a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/nc-gui/components/general/ImageCropper.vue

2
packages/nc-gui/components/general/ImageCropper.vue

@ -53,6 +53,7 @@ const handleUploadImage = async (fileToUpload: AttachmentReqType[]) => {
if (uploadResult?.[0]) {
emit('submit', {
...uploadResult[0],
data: fileToUpload[0].data,
})
} else {
emit('submit', fileToUpload[0])
@ -78,6 +79,7 @@ const handleSaveImage = async () => {
mimetype: imageConfig.type,
size: blob.size,
url: previewImage.value.src,
data: previewImage.value.src,
},
])
}, imageConfig.type)

Loading…
Cancel
Save