diff --git a/packages/core/client/src/schema-component/antd/page/Page.tsx b/packages/core/client/src/schema-component/antd/page/Page.tsx index 92613373fb..96efec3bb6 100644 --- a/packages/core/client/src/schema-component/antd/page/Page.tsx +++ b/packages/core/client/src/schema-component/antd/page/Page.tsx @@ -139,7 +139,7 @@ export const Page = (props) => { const [loading, setLoading] = useState(false); const [activeKey, setActiveKey] = useState(() => { // @ts-ignore - return location?.query?.tab || Object.keys(fieldSchema.properties).shift(); + return location?.query?.tab || Object.keys(fieldSchema.properties || {}).shift(); }); const [height, setHeight] = useState(0);