fix clone workflow

pull/30205/head
Lunny Xiao 2025-11-04 12:36:00 -08:00
parent c6bd967966
commit 7db5b850ca
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ const cloneWorkflow = (sourceWorkflow: any) => {
if (!sourceWorkflow) return;
// Generate a unique temporary ID for the cloned workflow
const tempId = `clone-${sourceWorkflow.workflow_event}-${Date.now()}`;
const tempId = `${sourceWorkflow.workflow_event}`;
// Extract base name without any parenthetical descriptions
const baseName = (sourceWorkflow.display_name || sourceWorkflow.workflow_event || sourceWorkflow.event_id)