diff --git a/src/components/editor/StyleConfigDialog.tsx b/src/components/editor/StyleConfigDialog.tsx index 592da7c..74b3496 100644 --- a/src/components/editor/StyleConfigDialog.tsx +++ b/src/components/editor/StyleConfigDialog.tsx @@ -56,7 +56,7 @@ export function StyleConfigDialog({ value, onChangeAction }: StyleConfigDialogPr const newOptions = { ...currentOptions, [category]: { - ...currentOptions[category], + ...(currentOptions[category] as object || {}), [subcategory]: value === null ? undefined : value } }