diff --git a/web/components/flow/canvas-modal/add-flow-variable-modal.tsx b/web/components/flow/canvas-modal/add-flow-variable-modal.tsx index 6be1c6982..5105acb94 100644 --- a/web/components/flow/canvas-modal/add-flow-variable-modal.tsx +++ b/web/components/flow/canvas-modal/add-flow-variable-modal.tsx @@ -126,6 +126,37 @@ export const AddFlowVariableModal: React.FC = ({ flowInfo }) => { } }; + // Helper function to render the appropriate control component + const renderVariableValue = (type: string, index: number) => { + switch (type) { + case 'ref': + return ( + onRefTypeValueChange(value, selectedOptions, index)} + changeOnSelect + /> + ); + case 'str': + return ; + case 'int': + return ; + case 'float': + return ; + case 'bool': + return ( + + ); + default: + return ; + } + }; + return ( <>