fix: run app node display (#2546)
This commit is contained in:
parent
14bd1b5404
commit
a206d77287
@ -45,8 +45,8 @@ const systemNodes: FlowNodeTemplateType[] = [
|
|||||||
LafModule,
|
LafModule,
|
||||||
IfElseNode,
|
IfElseNode,
|
||||||
VariableUpdateNode,
|
VariableUpdateNode,
|
||||||
CodeNode
|
CodeNode,
|
||||||
// RunAppModule
|
RunAppModule
|
||||||
];
|
];
|
||||||
/* app flow module templates */
|
/* app flow module templates */
|
||||||
export const appSystemModuleTemplates: FlowNodeTemplateType[] = [
|
export const appSystemModuleTemplates: FlowNodeTemplateType[] = [
|
||||||
|
|||||||
@ -408,6 +408,7 @@ const RenderList = React.memo(function RenderList({
|
|||||||
templates.forEach((item) => {
|
templates.forEach((item) => {
|
||||||
const index = copy.findIndex((template) => template.type === item.templateType);
|
const index = copy.findIndex((template) => template.type === item.templateType);
|
||||||
if (index === -1) return;
|
if (index === -1) return;
|
||||||
|
if (item.flowNodeType === FlowNodeTypeEnum.runApp) return;
|
||||||
copy[index].list.push(item);
|
copy[index].list.push(item);
|
||||||
});
|
});
|
||||||
return copy.filter((item) => item.list.length > 0);
|
return copy.filter((item) => item.list.length > 0);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user