feat: Disable clicking the Next button while uploading files in RunDrawer #3355 (#3477)

### What problem does this PR solve?

feat: Disable clicking the Next button while uploading files in
RunDrawer #3355

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-11-19 11:03:39 +08:00
committed by GitHub
parent ed72d1100b
commit eef84a86bf
5 changed files with 43 additions and 14 deletions

View File

@ -18,7 +18,9 @@ const FileIcon = ({ name, id }: IProps) => {
const fileThumbnail = fileThumbnails[id];
useEffect(() => {
setDocumentIds([id]);
if (id) {
setDocumentIds([id]);
}
}, [id, setDocumentIds]);
return fileThumbnail ? (