fix dropdown value issue

This commit is contained in:
x032205
2025-08-01 18:29:26 -04:00
parent fe7e8e7240
commit ba393b0498
@@ -256,7 +256,7 @@ export const GitHubConnectionForm = ({ appConnection }: Props) => {
<div> <div>
<Select <Select
isDisabled={!isAllowed} isDisabled={!isAllowed}
value={value as string} value={value || (null as unknown as string)}
onValueChange={onChange} onValueChange={onChange}
className="w-full border border-mineshaft-500" className="w-full border border-mineshaft-500"
dropdownContainerClassName="max-w-none" dropdownContainerClassName="max-w-none"
@@ -266,7 +266,7 @@ export const GitHubConnectionForm = ({ appConnection }: Props) => {
> >
<SelectItem <SelectItem
value={null as unknown as string} value={null as unknown as string}
onClick={() => onChange(undefined)} onClick={() => onChange(null)}
> >
Internet Gateway Internet Gateway
</SelectItem> </SelectItem>