fix: success dialog popping wrong (#3659)
* 🐛 (sideBarFolderButtons/index.tsx): fix success message not being set when files array is empty * 🐛 (index.tsx): fix issue where success message was not being displayed when uploading files successfully
This commit is contained in:
parent
706d559003
commit
70af48cfe4
1 changed files with 4 additions and 0 deletions
|
|
@ -67,6 +67,10 @@ const SideBarFoldersButtonsComponent = ({
|
|||
|
||||
const handleUploadFlowsToFolder = () => {
|
||||
createFileUpload().then((files: File[]) => {
|
||||
if (files?.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
getObjectsFromFilelist<any>(files).then((objects) => {
|
||||
if (objects.every((flow) => flow.data?.nodes)) {
|
||||
uploadFlow({ files }).then(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue