refactor: Update OutputComponent to use name instead of selected when types.length < 2
This commit is contained in:
parent
e827789a09
commit
ae49081776
1 changed files with 2 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ export default function OutputComponent({
|
|||
const updateNodeInternals = useUpdateNodeInternals();
|
||||
|
||||
if (types.length < 2) {
|
||||
return <span className={cn(frozen ? " text-ice" : "")}>{selected}</span>;
|
||||
return <span className={cn(frozen ? " text-ice" : "")}>{name}</span>;
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
@ -40,7 +40,7 @@ export default function OutputComponent({
|
|||
size="xs"
|
||||
className={cn(
|
||||
frozen ? "text-ice" : "",
|
||||
"items-center gap-1 pl-2 pr-1.5 align-middle text-xs font-normal"
|
||||
"items-center gap-1 pl-2 pr-1.5 align-middle text-xs font-normal",
|
||||
)}
|
||||
>
|
||||
<span className="pb-px">{selected}</span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue