mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(editor): Place duplicated WFs always to correct parent folders (#14713)
This commit is contained in:
@@ -17,7 +17,13 @@ import { useTelemetry } from '@/composables/useTelemetry';
|
||||
const props = defineProps<{
|
||||
modalName: string;
|
||||
isActive: boolean;
|
||||
data: { tags: string[]; id: string; name: string; externalEventBus?: EventBus };
|
||||
data: {
|
||||
tags: string[];
|
||||
id: string;
|
||||
name: string;
|
||||
externalEventBus?: EventBus;
|
||||
parentFolderId?: string;
|
||||
};
|
||||
}>();
|
||||
|
||||
const router = useRouter();
|
||||
@@ -72,7 +78,7 @@ const save = async (): Promise<void> => {
|
||||
return;
|
||||
}
|
||||
|
||||
const parentFolderId = router.currentRoute.value.params.folderId as string | undefined;
|
||||
const parentFolderId = props.data.parentFolderId;
|
||||
|
||||
const currentWorkflowId = props.data.id;
|
||||
isSaving.value = true;
|
||||
|
||||
@@ -408,6 +408,7 @@ async function onWorkflowMenuSelect(action: WORKFLOW_MENU_ACTIONS): Promise<void
|
||||
id: props.id,
|
||||
name: props.name,
|
||||
tags: props.tags,
|
||||
parentFolderId: currentFolder?.value?.id,
|
||||
},
|
||||
});
|
||||
break;
|
||||
|
||||
@@ -220,6 +220,7 @@ async function onAction(action: string) {
|
||||
typeof tag !== 'string' && 'id' in tag ? tag.id : tag,
|
||||
),
|
||||
externalEventBus: props.workflowListEventBus,
|
||||
parentFolderId: props.data.parentFolder?.id,
|
||||
},
|
||||
});
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user