Skip to content

Commit

Permalink
fix: render inputs (#3384)
Browse files Browse the repository at this point in the history
  • Loading branch information
c121914yu authored Dec 13, 2024
1 parent e71708e commit b596976
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down

0 comments on commit b596976

Please sign in to comment.