From a206d772872d01c04181a12569680af9b250dbe3 Mon Sep 17 00:00:00 2001 From: heheer Date: Tue, 27 Aug 2024 18:16:35 +0800 Subject: [PATCH] fix: run app node display (#2546) --- packages/global/core/workflow/template/constants.ts | 4 ++-- .../components/WorkflowComponents/Flow/NodeTemplatesModal.tsx | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/global/core/workflow/template/constants.ts b/packages/global/core/workflow/template/constants.ts index 1e87adac5..a981286ba 100644 --- a/packages/global/core/workflow/template/constants.ts +++ b/packages/global/core/workflow/template/constants.ts @@ -45,8 +45,8 @@ const systemNodes: FlowNodeTemplateType[] = [ LafModule, IfElseNode, VariableUpdateNode, - CodeNode - // RunAppModule + CodeNode, + RunAppModule ]; /* app flow module templates */ export const appSystemModuleTemplates: FlowNodeTemplateType[] = [ diff --git a/projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/NodeTemplatesModal.tsx b/projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/NodeTemplatesModal.tsx index 0b57fee04..deec761df 100644 --- a/projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/NodeTemplatesModal.tsx +++ b/projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/NodeTemplatesModal.tsx @@ -408,6 +408,7 @@ const RenderList = React.memo(function RenderList({ templates.forEach((item) => { const index = copy.findIndex((template) => template.type === item.templateType); if (index === -1) return; + if (item.flowNodeType === FlowNodeTypeEnum.runApp) return; copy[index].list.push(item); }); return copy.filter((item) => item.list.length > 0);