mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 16:05:47 +01:00
Fix build errors
This commit is contained in:
@@ -167,7 +167,7 @@ function WidgetOptionTypeSwitch(
|
||||
data={option.data}
|
||||
label={t(`descriptor.settings.${key}.label`)}
|
||||
value={value as string}
|
||||
onChange={(v) => handleChange(key, v)}
|
||||
onChange={(v) => handleChange(key, v ?? option.defaultValue)}
|
||||
/>
|
||||
);
|
||||
case 'number':
|
||||
|
||||
Reference in New Issue
Block a user