fix: run app node display (#2546)

This commit is contained in:
heheer
2024-08-27 18:16:35 +08:00
committed by GitHub
parent 14bd1b5404
commit a206d77287
2 changed files with 3 additions and 2 deletions

View File

@@ -45,8 +45,8 @@ const systemNodes: FlowNodeTemplateType[] = [
LafModule,
IfElseNode,
VariableUpdateNode,
CodeNode
// RunAppModule
CodeNode,
RunAppModule
];
/* app flow module templates */
export const appSystemModuleTemplates: FlowNodeTemplateType[] = [

View File

@@ -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);