fix(editor): Fix new, unsaved workflow sharing (#16740)

This commit is contained in:
Csaba Tuncsik
2025-06-27 16:20:01 +02:00
committed by GitHub
parent c5ec056eb5
commit 5fe68f38df
5 changed files with 159 additions and 24 deletions

View File

@@ -105,7 +105,7 @@ const save = async (): Promise<void> => {
);
}
const saved = await workflowSaving.saveAsNewWorkflow({
const workflowId = await workflowSaving.saveAsNewWorkflow({
name: workflowName,
data: workflowToUpdate,
tags: currentTagIds.value,
@@ -115,7 +115,7 @@ const save = async (): Promise<void> => {
parentFolderId,
});
if (saved) {
if (!!workflowId) {
closeDialog();
telemetry.track('User duplicated workflow', {
old_workflow_id: currentWorkflowId,