From 70769de9e5b9f8a013377695a4b53038ada4f563 Mon Sep 17 00:00:00 2001 From: tianyaxiang Date: Sun, 2 Feb 2025 11:31:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=9D=97=E4=B8=BB=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/editor/StyleConfigDialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }