Improvements

This commit is contained in:
Jan Oberhauser 2021-12-23 21:00:08 +01:00
parent 395f8ed5b5
commit b4f2251bcb
5 changed files with 6 additions and 13 deletions

View file

@ -186,13 +186,11 @@ export class Telemetry {
async track(eventName: string, properties?: IDataObject): Promise<void> {
return new Promise<void>((resolve) => {
if (this.client) {
// @ts-ignore
this.client.track(
{
userId: this.instanceId,
anonymousId: '000000000000',
event: eventName,
// @ts-ignore
properties,
},
resolve,

View file

@ -11,7 +11,6 @@
"module": "commonjs",
"noImplicitAny": true,
"removeComments": true,
"skipLibCheck": true,
"strictNullChecks": true,
"forceConsistentCasingInFileNames": true,
"noImplicitReturns": true,

View file

@ -39,7 +39,7 @@ export default mixins(
workflowHelpers,
).extend({
name: 'CodeEdit',
props: ['codeAutocomplete', 'dialogVisible', 'parameter', 'type', 'value'],
props: ['codeAutocomplete', 'parameter', 'type', 'value'],
data() {
return {
monacoInstance: null as monaco.editor.IStandaloneCodeEditor | null,
@ -142,7 +142,7 @@ export default mixins(
const workflow = this.getWorkflow();
const activeNode: INodeUi | null = this.$store.getters.activeNode;
const parentNode = workflow.getParentNodes(activeNode!.name, inputName, 1);
const inputIndex = workflow.getNodeConnectionOutputIndex(activeNode.name, parentNode[0]);
const inputIndex = workflow.getNodeConnectionOutputIndex(activeNode!.name, parentNode[0]) || 0;
const autocompleteData: string[] = [];
@ -157,8 +157,8 @@ export default mixins(
};
} else {
runExecutionData = executionData.data;
if (runExecutionData.resultData.runData[activeNode.name]) {
runIndex = runExecutionData.resultData.runData[activeNode.name].length - 1;
if (runExecutionData.resultData.runData[activeNode!.name]) {
runIndex = runExecutionData.resultData.runData[activeNode!.name].length - 1;
}
}
@ -240,10 +240,6 @@ export default mixins(
</script>
<style scoped>
.editor-description {
font-weight: bold;
padding: 0 0 0.5em 0.2em;
}
.text-editor {
min-height: 30rem;

View file

@ -127,7 +127,7 @@ return items;`,
if (this.continueOnFail()) {
items=[{json:{ error: error.message }}];
} else {
// Try to find the lien number which contains the error and attach to error message
// Try to find the line number which contains the error and attach to error message
const stackLines = error.stack.split('\n');
if (stackLines.length > 0) {
const lineParts = stackLines[1].split(':');

View file

@ -120,7 +120,7 @@ return item;`,
returnData.push({json:{ error: error.message }});
continue;
} else {
// Try to find the lien number which contains the error and attach to error message
// Try to find the line number which contains the error and attach to error message
const stackLines = error.stack.split('\n');
if (stackLines.length > 0) {
const lineParts = stackLines[1].split(':');