fix: Remove unnecessary error return when all components are erased from a flow (#3433)
🔧 (use-save-flow.ts): remove unnecessary error data setting when saving an empty flow to improve code readability and maintainability
This commit is contained in:
parent
66110f24e2
commit
886a8c6bed
1 changed files with 0 additions and 4 deletions
|
|
@ -77,10 +77,6 @@ const useSaveFlow = () => {
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
setErrorData({
|
|
||||||
title: "Failed to save flow",
|
|
||||||
list: ["Can't save empty flow"],
|
|
||||||
});
|
|
||||||
setSaveLoading(false);
|
setSaveLoading(false);
|
||||||
reject(new Error("Can't save empty flow"));
|
reject(new Error("Can't save empty flow"));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue