Fixed dropdown placeholder
This commit is contained in:
parent
654e50aa1e
commit
3c6d9fb388
2 changed files with 4 additions and 2 deletions
|
|
@ -605,7 +605,7 @@ export default function ParameterComponent({
|
|||
isLoading={isLoading}
|
||||
options={data.node.template[name].options}
|
||||
onSelect={handleOnNewValue}
|
||||
value={data.node.template[name].value ?? "Choose an option"}
|
||||
value={data.node.template[name].value}
|
||||
id={"dropdown-" + name}
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -52,7 +52,9 @@ export default function Dropdown({
|
|||
editNode ? "input-edit-node" : "py-2"
|
||||
)}
|
||||
>
|
||||
{value
|
||||
{(value &&
|
||||
value !== "" &&
|
||||
options.find((option) => option === value))
|
||||
? options.find((option) => option === value)
|
||||
: "Choose an option..."}
|
||||
<ForwardedIconComponent
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue