mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-25 15:01:03 +03:00
Adding ability to hide node param from UI
This commit is contained in:
@@ -72,6 +72,7 @@ export interface INodeParams {
|
||||
fileType?: string
|
||||
additionalParams?: boolean
|
||||
loadMethod?: string
|
||||
hidden?: boolean
|
||||
}
|
||||
|
||||
export interface INodeExecutionData {
|
||||
|
||||
@@ -207,9 +207,11 @@ const CanvasNode = ({ data }) => {
|
||||
{data.inputAnchors.map((inputAnchor, index) => (
|
||||
<NodeInputHandler key={index} inputAnchor={inputAnchor} data={data} />
|
||||
))}
|
||||
{data.inputParams.map((inputParam, index) => (
|
||||
<NodeInputHandler key={index} inputParam={inputParam} data={data} />
|
||||
))}
|
||||
{data.inputParams
|
||||
.filter((inputParam) => !inputParam.hidden)
|
||||
.map((inputParam, index) => (
|
||||
<NodeInputHandler key={index} inputParam={inputParam} data={data} />
|
||||
))}
|
||||
{data.inputParams.find((param) => param.additionalParams) && (
|
||||
<div
|
||||
style={{
|
||||
|
||||
Reference in New Issue
Block a user