From 61d99416b8f522efe9188eef269ad5c3532efc44 Mon Sep 17 00:00:00 2001 From: mokinzhao Date: Sat, 27 Mar 2021 13:34:14 +0800 Subject: [PATCH] feat:test --- src/pages/editor/Container.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/editor/Container.tsx b/src/pages/editor/Container.tsx index 56eed21a..db9920cb 100644 --- a/src/pages/editor/Container.tsx +++ b/src/pages/editor/Container.tsx @@ -92,7 +92,7 @@ const Container = (props: { return (data: any) => { dispatch({ type: 'editorModal/modPointData', - payload: { ...curPoint, item: { ...curPoint.item, config: data } }, + payload: { ...curPoint, item: { ...curPoint?.item, config: data } }, }); }; }, [curPoint, dispatch]);