Skip to content

Commit

Permalink
bug fix: url menu in sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
srijanpatel committed Jan 8, 2025
1 parent 82edd7a commit 7e8eb56
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions frontend/src/components/nodes/nodeSidebar/NodeSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -736,11 +736,7 @@ const NodeSidebar: React.FC<NodeSidebarProps> = ({ nodeID }) => {
showArrow={true}
className="max-w-xs"
>
<Icon
icon="solar:question-circle-linear"
className="text-default-400 cursor-help"
width={20}
/>
<Icon icon="solar:question-circle-linear" className="text-default-400 cursor-help" width={20} />
</Tooltip>
</div>
<div className="mb-2">
Expand All @@ -752,15 +748,15 @@ const NodeSidebar: React.FC<NodeSidebarProps> = ({ nodeID }) => {
handleInputChange('url_variables', updatedUrlVars)
}}
>
<SelectItem key="" value="">None</SelectItem>
{incomingSchemaVars.map((variable) => (
{['', ...incomingSchemaVars].map((variable) => (
<SelectItem key={variable} value={variable}>
{variable}
{variable || 'None'}
</SelectItem>
))}
</Select>
<p className="text-xs text-default-500 mt-1">
Supports both file URLs and inline data in the format: data:&lt;mime_type&gt;;base64,&lt;encoded_data&gt;
Supports both file URLs and inline data in the format:
data:&lt;mime_type&gt;;base64,&lt;encoded_data&gt;
</p>
</div>
</div>
Expand Down

0 comments on commit 7e8eb56

Please sign in to comment.