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:
Cristhian Zanforlin Lousa 2024-09-02 18:10:47 -03:00 committed by GitHub
commit 70af48cfe4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(() => {