mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 14:39:25 +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(() => {
|
||||
const run = async () => {
|
||||
const waitList = popupParams.map(
|
||||
(params) => getStoredPopupContext(params.popupuid)?.schema || requestSchema(params.popupuid),
|
||||
);
|
||||
const waitList = popupParams.map((params) => {
|
||||
return (
|
||||
getStoredPopupContext(params.popupuid)?.schema ||
|
||||
findSchemaByUid(params.popupuid, fieldSchema.root) ||
|
||||
requestSchema(params.popupuid)
|
||||
);
|
||||
});
|
||||
const schemas = await Promise.all(waitList);
|
||||
const clonedSchemas = schemas.map((schema, index) => {
|
||||
if (_.isEmpty(schema)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user