File tree 1 file changed +10
-8
lines changed
packages/editor-ui/src/components
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 4
4
NodeConnectionType ,
5
5
type IRunData ,
6
6
type IRunExecutionData ,
7
- type NodeError ,
8
7
type Workflow ,
9
8
} from ' n8n-workflow' ;
10
9
import RunData from ' ./RunData.vue' ;
@@ -120,14 +119,17 @@ const hasAiMetadata = computed(() => {
120
119
return false ;
121
120
});
122
121
123
- // Determine the initial output mode to logs if the node has an error and the logs are available
124
- const defaultOutputMode = computed <OutputType >(() => {
125
- const hasError =
122
+ const hasError = computed (() =>
123
+ Boolean (
126
124
workflowRunData .value &&
127
- node .value &&
128
- (workflowRunData .value [node .value .name ]?.[props .runIndex ]?.error as NodeError );
125
+ node .value &&
126
+ workflowRunData .value [node .value .name ]?.[props .runIndex ]?.error ,
127
+ ),
128
+ );
129
129
130
- return Boolean (hasError ) && hasAiMetadata .value ? OUTPUT_TYPE .LOGS : OUTPUT_TYPE .REGULAR ;
130
+ // Determine the initial output mode to logs if the node has an error and the logs are available
131
+ const defaultOutputMode = computed <OutputType >(() => {
132
+ return hasError .value && hasAiMetadata .value ? OUTPUT_TYPE .LOGS : OUTPUT_TYPE .REGULAR ;
131
133
});
132
134
133
135
const isNodeRunning = computed (() => {
@@ -216,7 +218,7 @@ const canPinData = computed(() => {
216
218
});
217
219
218
220
const allToolsWereUnusedNotice = computed (() => {
219
- if (! node .value || runsCount .value === 0 ) return undefined ;
221
+ if (! node .value || runsCount .value === 0 || hasError . value ) return undefined ;
220
222
221
223
// With pinned data there's no clear correct answer for whether
222
224
// we should use historic or current parents, so we don't show the notice,
You can’t perform that action at this time.
0 commit comments