Create many steps in a row (#9727)

Fixes
https://discord.com/channels/1130383047699738754/1329099124515274823
This commit is contained in:
Baptiste Devessier
2025-01-17 18:12:11 +01:00
committed by GitHub
parent 06033040d8
commit 18dea07344

View File

@ -47,13 +47,10 @@ export const WorkflowDiagramEffect = ({
if (isDefined(lastCreatedStepId)) {
mergedWorkflowDiagram.nodes = mergedWorkflowDiagram.nodes.map(
(node) => {
if (node.id === lastCreatedStepId) {
return {
...node,
selected: true,
};
}
return node;
return {
...node,
selected: node.id === lastCreatedStepId,
};
},
);