mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-03 12:47:44 +08:00
fix(subpage): fix the problem of invalid tab deletion (#5362)
This commit is contained in:
parent
f074029624
commit
e3dee45ea4
@ -232,9 +232,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…
Reference in New Issue
Block a user