mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-22 12:19:09 +00:00
🐛 Fix code to work with new n8n-workflow
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user