This commit is contained in:
@@ -41,7 +41,9 @@ export function Combobox({
|
||||
"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}
|
||||
</span>
|
||||
<ChevronsUpDown className="text-muted-foreground size-4 shrink-0" />
|
||||
|
||||
@@ -223,9 +223,7 @@ export function FieldRenderer({ variable }: { variable: ClientVariable }) {
|
||||
</FormLabel>
|
||||
<FormControl>
|
||||
<Combobox
|
||||
choices={
|
||||
variable.type === "enum" ? variable.choices : []
|
||||
}
|
||||
choices={variable.type === "enum" ? variable.choices : []}
|
||||
value={field.value ?? ""}
|
||||
onChange={(value) => field.onChange(value)}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user