fix: Show actual execution data for production executions even if pin data exists (#6302)

This commit is contained in:
Alex Grozav
2023-06-01 19:12:21 +03:00
committed by GitHub
parent b5cabfef54
commit 4eb8437196
5 changed files with 85 additions and 31 deletions

View File

@@ -27,6 +27,7 @@ import { useToast } from '@/composables';
import type { IWorkflowDb } from '@/Interface';
import { mapStores } from 'pinia';
import { useRootStore } from '@/stores/n8nRoot.store';
import { useWorkflowsStore } from '@/stores';
export default defineComponent({
name: 'WorkflowPreview',
@@ -73,7 +74,7 @@ export default defineComponent({
};
},
computed: {
...mapStores(useRootStore),
...mapStores(useRootStore, useWorkflowsStore),
showPreview(): boolean {
return (
!this.loading &&
@@ -134,6 +135,16 @@ export default defineComponent({
}),
'*',
);
if (this.workflowsStore.activeWorkflowExecution) {
iframeRef.contentWindow.postMessage(
JSON.stringify({
command: 'setActiveExecution',
execution: this.workflowsStore.activeWorkflowExecution,
}),
'*',
);
}
}
} catch (error) {
this.showError(