diff --git a/packages/core/client/src/schema-component/antd/page/PagePopups.tsx b/packages/core/client/src/schema-component/antd/page/PagePopups.tsx index 458569b79a..98a6488cd4 100644 --- a/packages/core/client/src/schema-component/antd/page/PagePopups.tsx +++ b/packages/core/client/src/schema-component/antd/page/PagePopups.tsx @@ -244,7 +244,7 @@ export const PagePopups = (props: { paramsList?: PopupParams[] }) => { const waitList = popupParams.map((params) => { return ( getStoredPopupContext(params.popupuid)?.schema || - findSchemaByUid(params.popupuid, fieldSchema.root) || + findSchemaByUid(params.popupuid, fieldSchema?.root) || requestSchema(params.popupuid) ); }); @@ -257,7 +257,7 @@ export const PagePopups = (props: { paramsList?: PopupParams[] }) => { const params = popupParams[index]; if (params.puid) { - const popupSchema = findSchemaByUid(params.puid, fieldSchema.root); + const popupSchema = findSchemaByUid(params.puid, fieldSchema?.root); if (popupSchema) { savePopupSchemaToSchema(_.omit(popupSchema, 'parent'), schema); }