mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00
fix: render inputs (#3384)
This commit is contained in:
@@ -90,10 +90,9 @@ const RenderInput = ({ flowInputList, nodeId, CustomComponent, mb = 5 }: Props)
|
|||||||
if (input.isPro && !feConfigs?.isPlus) return false;
|
if (input.isPro && !feConfigs?.isPlus) return false;
|
||||||
|
|
||||||
const renderType = input.renderTypeList?.[input.selectedTypeIndex || 0];
|
const renderType = input.renderTypeList?.[input.selectedTypeIndex || 0];
|
||||||
if (renderType === FlowNodeInputTypeEnum.hidden) return false;
|
|
||||||
|
|
||||||
const isDynamic = !!input.canEdit;
|
const isDynamic = !!input.canEdit;
|
||||||
if (isDynamic) return false;
|
|
||||||
|
if (renderType === FlowNodeInputTypeEnum.hidden && !isDynamic) return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user