mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
👕 Fix lint issue
This commit is contained in:
parent
549a30c267
commit
be1da6d9e1
|
@ -30,7 +30,7 @@
|
||||||
<div class="node-name" :title="data.name">
|
<div class="node-name" :title="data.name">
|
||||||
{{data.name}}
|
{{data.name}}
|
||||||
</div>
|
</div>
|
||||||
<div v-if="nodeSubtitle !== null" class="node-subtitle" :title="nodeSubtitle">
|
<div v-if="nodeSubtitle !== undefined" class="node-subtitle" :title="nodeSubtitle">
|
||||||
{{nodeSubtitle}}
|
{{nodeSubtitle}}
|
||||||
</div>
|
</div>
|
||||||
<div class="node-edit" @click.left.stop="setNodeActive" title="Edit Node">
|
<div class="node-edit" @click.left.stop="setNodeActive" title="Edit Node">
|
||||||
|
@ -46,6 +46,7 @@ import { nodeBase } from '@/components/mixins/nodeBase';
|
||||||
import { workflowHelpers } from '@/components/mixins/workflowHelpers';
|
import { workflowHelpers } from '@/components/mixins/workflowHelpers';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
INode,
|
||||||
INodeIssueObjectProperty,
|
INodeIssueObjectProperty,
|
||||||
INodePropertyOptions,
|
INodePropertyOptions,
|
||||||
INodeTypeDescription,
|
INodeTypeDescription,
|
||||||
|
@ -119,9 +120,9 @@ export default mixins(nodeBase, workflowHelpers).extend({
|
||||||
return 'play';
|
return 'play';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
nodeSubtitle (): string | null {
|
nodeSubtitle (): string | undefined {
|
||||||
if (this.nodeType.subtitle !== undefined) {
|
if (this.nodeType !== null && this.nodeType.subtitle !== undefined) {
|
||||||
return this.workflow.getSimpleParameterValue(this, this.nodeType.subtitle)
|
return this.workflow.getSimpleParameterValue(this.data as INode, this.nodeType.subtitle);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.data.parameters.operation !== undefined) {
|
if (this.data.parameters.operation !== undefined) {
|
||||||
|
@ -150,7 +151,7 @@ export default mixins(nodeBase, workflowHelpers).extend({
|
||||||
|
|
||||||
return optionData.name;
|
return optionData.name;
|
||||||
}
|
}
|
||||||
return null;
|
return undefined;
|
||||||
},
|
},
|
||||||
workflowRunning (): boolean {
|
workflowRunning (): boolean {
|
||||||
return this.$store.getters.isActionActive('workflowRunning');
|
return this.$store.getters.isActionActive('workflowRunning');
|
||||||
|
|
Loading…
Reference in a new issue