Skip to content

Commit

Permalink
fix: Remove unnecessary error return when all components are erased f…
Browse files Browse the repository at this point in the history
…rom a flow (#3433)

🔧 (use-save-flow.ts): remove unnecessary error data setting when saving an empty flow to improve code readability and maintainability
  • Loading branch information
Cristhianzl authored Aug 19, 2024
1 parent 66110f2 commit 886a8c6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/frontend/src/hooks/flows/use-save-flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@ const useSaveFlow = () => {
},
);
} else {
setErrorData({
title: "Failed to save flow",
list: ["Can't save empty flow"],
});
setSaveLoading(false);
reject(new Error("Can't save empty flow"));
}
Expand Down

0 comments on commit 886a8c6

Please sign in to comment.