This commit is contained in:
@@ -41,7 +41,9 @@ export function Combobox({
|
|||||||
"h-auto min-h-8 w-full justify-between font-normal",
|
"h-auto min-h-8 w-full justify-between font-normal",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<span className={cn("flex-1 text-left", !value && "text-muted-foreground")}>
|
<span
|
||||||
|
className={cn("flex-1 text-left", !value && "text-muted-foreground")}
|
||||||
|
>
|
||||||
{value || placeholder}
|
{value || placeholder}
|
||||||
</span>
|
</span>
|
||||||
<ChevronsUpDown className="text-muted-foreground size-4 shrink-0" />
|
<ChevronsUpDown className="text-muted-foreground size-4 shrink-0" />
|
||||||
|
|||||||
@@ -223,9 +223,7 @@ export function FieldRenderer({ variable }: { variable: ClientVariable }) {
|
|||||||
</FormLabel>
|
</FormLabel>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Combobox
|
<Combobox
|
||||||
choices={
|
choices={variable.type === "enum" ? variable.choices : []}
|
||||||
variable.type === "enum" ? variable.choices : []
|
|
||||||
}
|
|
||||||
value={field.value ?? ""}
|
value={field.value ?? ""}
|
||||||
onChange={(value) => field.onChange(value)}
|
onChange={(value) => field.onChange(value)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user