🐛 Fix code to work with new n8n-workflow

This commit is contained in:
Jan Oberhauser
2019-08-09 12:51:45 +02:00
parent 281e943dcc
commit e66c259407

View File

@@ -5,6 +5,8 @@ import {
INodeExecutionData, INodeExecutionData,
INodeIssues, INodeIssues,
INodeType, INodeType,
INodeTypes,
INodeTypeData,
INodeTypeDescription, INodeTypeDescription,
IRunData, IRunData,
IRunExecutionData, IRunExecutionData,
@@ -168,13 +170,14 @@ export const workflowHelpers = mixins(
const nodes = this.getNodes(); const nodes = this.getNodes();
const connections = this.$store.getters.allConnections; const connections = this.$store.getters.allConnections;
const nodeTypes = { const nodeTypes: INodeTypes = {
init: async () => { }, nodeTypes: {},
getAll: () => { init: async (nodeTypes?: INodeTypeData): Promise<void> => { },
getAll: (): INodeType[] => {
// Does not get used in Workflow so no need to return it // Does not get used in Workflow so no need to return it
return []; return [];
}, },
getByName: (nodeType: string) => { getByName: (nodeType: string): INodeType | undefined => {
const nodeTypeDescription = this.$store.getters.nodeType(nodeType); const nodeTypeDescription = this.$store.getters.nodeType(nodeType);
if (nodeTypeDescription === null) { if (nodeTypeDescription === null) {