fix(editor): fix broken output panel for wait node executions (#4156)
This commit is contained in:
@@ -62,7 +62,7 @@ export default mixins(
|
||||
const executionData = this.$store.getters.getWorkflowExecution as IExecutionResponse | null;
|
||||
|
||||
let runExecutionData: IRunExecutionData;
|
||||
if (executionData === null) {
|
||||
if (!executionData || !executionData.data) {
|
||||
runExecutionData = {
|
||||
resultData: {
|
||||
runData: {},
|
||||
|
||||
@@ -261,7 +261,7 @@ export default mixins(
|
||||
if (this.workflowExecution === null) {
|
||||
return null;
|
||||
}
|
||||
const executionData: IRunExecutionData = this.workflowExecution.data;
|
||||
const executionData: IRunExecutionData | undefined = this.workflowExecution.data;
|
||||
if (executionData && executionData.resultData) {
|
||||
return executionData.resultData.runData;
|
||||
}
|
||||
|
||||
@@ -142,7 +142,10 @@ export default mixins(
|
||||
if (this.workflowExecution === null) {
|
||||
return null;
|
||||
}
|
||||
const executionData: IRunExecutionData = this.workflowExecution.data;
|
||||
const executionData: IRunExecutionData | undefined = this.workflowExecution.data;
|
||||
if (!executionData || !executionData.resultData || !executionData.resultData.runData) {
|
||||
return null;
|
||||
}
|
||||
return executionData.resultData.runData;
|
||||
},
|
||||
hasNodeRun(): boolean {
|
||||
|
||||
@@ -554,7 +554,7 @@ export default mixins(
|
||||
if (this.workflowExecution === null) {
|
||||
return null;
|
||||
}
|
||||
const executionData: IRunExecutionData = this.workflowExecution.data;
|
||||
const executionData: IRunExecutionData | undefined = this.workflowExecution.data;
|
||||
if (executionData && executionData.resultData) {
|
||||
return executionData.resultData.runData;
|
||||
}
|
||||
|
||||
@@ -506,7 +506,7 @@ export default mixins(
|
||||
const currentNodeData: IVariableSelectorOption[] = [];
|
||||
|
||||
let tempOptions: IVariableSelectorOption[];
|
||||
if (executionData !== null) {
|
||||
if (executionData !== null && executionData.data !== undefined) {
|
||||
const runExecutionData: IRunExecutionData = executionData.data;
|
||||
|
||||
tempOptions = this.getNodeContext(this.workflow, runExecutionData, parentNode, activeNode.name, filterText) as IVariableSelectorOption[];
|
||||
@@ -657,7 +657,7 @@ export default mixins(
|
||||
} as IVariableSelectorOption,
|
||||
];
|
||||
|
||||
if (executionData !== null) {
|
||||
if (executionData !== null && executionData.data !== undefined) {
|
||||
const runExecutionData: IRunExecutionData = executionData.data;
|
||||
|
||||
parentNode = this.workflow.getParentNodes(nodeName, inputName, 1);
|
||||
|
||||
@@ -534,7 +534,7 @@ export const workflowHelpers = mixins(
|
||||
let connectionInputData = this.connectionInputData(parentNode, activeNode.name, inputName, runIndexParent, nodeConnection);
|
||||
|
||||
let runExecutionData: IRunExecutionData;
|
||||
if (executionData === null) {
|
||||
if (executionData === null || !executionData.data) {
|
||||
runExecutionData = {
|
||||
resultData: {
|
||||
runData: {},
|
||||
|
||||
Reference in New Issue
Block a user