👕 Fix lint issue

This commit is contained in:
Jan Oberhauser 2021-05-15 00:36:41 -05:00
parent cb2887a8ab
commit 446c284540
2 changed files with 4 additions and 4 deletions

View file

@ -76,9 +76,9 @@
</template>
<script lang="ts">
import Vue from 'vue';
import {
INodeParameters,
INodeProperties,
} from 'n8n-workflow';
@ -158,7 +158,7 @@ export default mixins(
return true;
}
const nodeValues = {};
const nodeValues: INodeParameters = {};
let rawValues = this.nodeValues;
if (this.path) {
rawValues = get(this.nodeValues, this.path);
@ -169,7 +169,7 @@ export default mixins(
let key: string;
let i = 0;
do {
key = resolveKeys.shift();
key = resolveKeys.shift() as string;
if (typeof rawValues[key] === 'string' && rawValues[key].charAt(0) === '=') {
// Contains an expression that
if (rawValues[key].includes('$parameter') && resolveKeys.some(parameterName => rawValues[key].includes(parameterName))) {

View file

@ -338,7 +338,7 @@ export const workflowHelpers = mixins(
},
// Executes the given expression and returns its value
resolveExpression (expression: string, siblingParameters: INodeParameters) {
resolveExpression (expression: string, siblingParameters: INodeParameters = {}) {
const inputIndex = 0;
const itemIndex = 0;
const runIndex = 0;