mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix(frontend): set addon options number input to empty string when undefined
This commit is contained in:
@@ -118,7 +118,7 @@ const AddonsList: React.FC<AddonsListProps> = ({
|
||||
{option.type === 'number' && (
|
||||
<input
|
||||
type="number"
|
||||
value={addon.options[option.id]}
|
||||
value={addon.options[option.id] || ''}
|
||||
onChange={(e) =>
|
||||
updateOption(index, option.id, e.target.value ? e.target.value : undefined)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user