mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
remove the trailing #xx when copy
This commit is contained in:
@@ -27,7 +27,9 @@ export const useWorkflowUtils = () => {
|
||||
}
|
||||
}
|
||||
}).length;
|
||||
return nodeLength > 0 ? `${templateName}#${nodeLength + 1}` : templateName;
|
||||
return nodeLength > 0
|
||||
? `${templateName.replace(/#\d+$/, '')}#${nodeLength + 1}`
|
||||
: templateName;
|
||||
},
|
||||
[nodeList]
|
||||
);
|
||||
|
Reference in New Issue
Block a user