Commit 3e144c42 by Patrickill Committed by Archer

remove the trailing #xx when copy

parent d8b28876
...@@ -27,7 +27,9 @@ export const useWorkflowUtils = () => { ...@@ -27,7 +27,9 @@ export const useWorkflowUtils = () => {
} }
} }
}).length; }).length;
return nodeLength > 0 ? `${templateName}#${nodeLength + 1}` : templateName; return nodeLength > 0
? `${templateName.replace(/#\d+$/, '')}#${nodeLength + 1}`
: templateName;
}, },
[nodeList] [nodeList]
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment