fix(editor): Place duplicated WFs always to correct parent folders (#14713)

This commit is contained in:
Jaakko Husso
2025-04-22 15:41:12 +03:00
committed by GitHub
parent eaf6783eb5
commit 6c91e7e1b7
5 changed files with 105 additions and 3 deletions

View File

@@ -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;