Fix build errors

This commit is contained in:
ajnart
2023-01-11 08:49:23 +09:00
parent a811300f3e
commit 6ea1277e61

View File

@@ -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':