fix(nc-gui): some ai review changes

This commit is contained in:
Ramesh Mane
2024-11-20 23:32:56 +05:30
parent d206399257
commit e0aec448d6
2 changed files with 3 additions and 3 deletions

View File

@@ -151,7 +151,7 @@ const handleChange = (info: UploadChangeParam) => {
return
}
if (status && status !== 'removed' && status === 'done' && info.file.originFileObj instanceof File) {
if (status === 'done' && info.file.originFileObj instanceof File) {
// 1. Revoke the object URL, to allow the garbage collector to destroy the uploaded before file
if (imageCropperData.value.imageConfig.src) {
URL.revokeObjectURL(imageCropperData.value.imageConfig.src)