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]);