mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix(editor): Send only execution id in postMessage when previewing an execution (#9514)
This commit is contained in:
@@ -119,7 +119,7 @@ const loadExecution = () => {
|
|||||||
iframeRef.value?.contentWindow?.postMessage?.(
|
iframeRef.value?.contentWindow?.postMessage?.(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
command: 'setActiveExecution',
|
command: 'setActiveExecution',
|
||||||
execution: executionsStore.activeExecution,
|
executionId: executionsStore.activeExecution.id,
|
||||||
}),
|
}),
|
||||||
'*',
|
'*',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ describe('WorkflowPreview', () => {
|
|||||||
expect(postMessageSpy).toHaveBeenCalledWith(
|
expect(postMessageSpy).toHaveBeenCalledWith(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
command: 'setActiveExecution',
|
command: 'setActiveExecution',
|
||||||
execution: { id: 'abc' },
|
executionId: 'abc',
|
||||||
}),
|
}),
|
||||||
'*',
|
'*',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -4765,7 +4765,9 @@ export default defineComponent({
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else if (json?.command === 'setActiveExecution') {
|
} else if (json?.command === 'setActiveExecution') {
|
||||||
this.executionsStore.activeExecution = json.execution;
|
this.executionsStore.activeExecution = (await this.executionsStore.fetchExecution(
|
||||||
|
json.executionId,
|
||||||
|
)) as ExecutionSummary;
|
||||||
}
|
}
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user