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