From b596976a96b5ea44da5cc0f4c86c1a3389e2b838 Mon Sep 17 00:00:00 2001 From: Archer <545436317@qq.com> Date: Fri, 13 Dec 2024 08:06:05 +0800 Subject: [PATCH] fix: render inputs (#3384) --- .../Flow/nodes/render/RenderInput/index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/nodes/render/RenderInput/index.tsx b/projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/nodes/render/RenderInput/index.tsx index 78cd391bbe7..9a9b24c470f 100644 --- a/projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/nodes/render/RenderInput/index.tsx +++ b/projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/nodes/render/RenderInput/index.tsx @@ -90,10 +90,9 @@ const RenderInput = ({ flowInputList, nodeId, CustomComponent, mb = 5 }: Props) if (input.isPro && !feConfigs?.isPlus) return false; const renderType = input.renderTypeList?.[input.selectedTypeIndex || 0]; - if (renderType === FlowNodeInputTypeEnum.hidden) return false; - const isDynamic = !!input.canEdit; - if (isDynamic) return false; + + if (renderType === FlowNodeInputTypeEnum.hidden && !isDynamic) return false; return true; });