mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-08 06:59:26 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
bd62fcb7a1
@ -241,9 +241,13 @@ export const PagePopups = (props: { paramsList?: PopupParams[] }) => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const run = async () => {
|
const run = async () => {
|
||||||
const waitList = popupParams.map(
|
const waitList = popupParams.map((params) => {
|
||||||
(params) => getStoredPopupContext(params.popupuid)?.schema || requestSchema(params.popupuid),
|
return (
|
||||||
);
|
getStoredPopupContext(params.popupuid)?.schema ||
|
||||||
|
findSchemaByUid(params.popupuid, fieldSchema.root) ||
|
||||||
|
requestSchema(params.popupuid)
|
||||||
|
);
|
||||||
|
});
|
||||||
const schemas = await Promise.all(waitList);
|
const schemas = await Promise.all(waitList);
|
||||||
const clonedSchemas = schemas.map((schema, index) => {
|
const clonedSchemas = schemas.map((schema, index) => {
|
||||||
if (_.isEmpty(schema)) {
|
if (_.isEmpty(schema)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user