|
|
@@ -57,8 +57,12 @@ export const PlatformSelector: React.FC<PlatformSelectorProps> = ({
|
|
|
|
|
|
return (
|
|
|
<Select
|
|
|
- value={value?.toString()}
|
|
|
- onValueChange={(val) => onChange?.(parseInt(val))}
|
|
|
+ value={value?.toString() || ''}
|
|
|
+ onValueChange={(val) => {
|
|
|
+ if (val) {
|
|
|
+ onChange?.(parseInt(val));
|
|
|
+ }
|
|
|
+ }}
|
|
|
disabled={disabled || isLoading || platformList.length === 0}
|
|
|
>
|
|
|
<SelectTrigger className={className} data-testid={testId}>
|