Merge branch 'feature/debug_upload_file' into 'develop'

Feature/debug upload file

See merge request witel3/loan-facilities-expert!55
This commit is contained in:
yasaman aliakbari
2023-07-24 09:25:05 +00:00
2 changed files with 4 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
"dev": "next dev", "dev": "next dev",
"build": "next build", "build": "next build",
"start": "next start", "start": "next start",
"publish-3002": "next start -p 3002",
"lint": "next lint" "lint": "next lint"
}, },
"dependencies": { "dependencies": {

View File

@@ -29,6 +29,9 @@ const UploadSystem = ({
setselectedImage(null); setselectedImage(null);
setFieldValue(fieldname, null); setFieldValue(fieldname, null);
setShowAddIcon(true); setShowAddIcon(true);
if (fileInputRef.current) {
fileInputRef.current.value = "";
}
}; };
const isDocumentFormat = (fileType) => { const isDocumentFormat = (fileType) => {