mirror of
https://github.com/nocobase/nocobase
synced 2024-11-14 16:34:14 +00:00
fix(subpage): fix the problem of invalid tab deletion (#5362)
Some checks are pending
auto-merge / push-commit (push) Waiting to run
Build Docker Image / build-and-push (push) Waiting to run
Build Pro Image / build-and-push (push) Waiting to run
deploy client docs / Build (push) Waiting to run
E2E / Build (push) Waiting to run
E2E / Core and plugins (push) Blocked by required conditions
E2E / plugin-workflow (push) Blocked by required conditions
E2E / plugin-workflow-approval (push) Blocked by required conditions
E2E / plugin-data-source-main (push) Blocked by required conditions
E2E / Comment on PR (push) Blocked by required conditions
NocoBase FrontEnd Test / frontend-test (18) (push) Waiting to run
Some checks are pending
auto-merge / push-commit (push) Waiting to run
Build Docker Image / build-and-push (push) Waiting to run
Build Pro Image / build-and-push (push) Waiting to run
deploy client docs / Build (push) Waiting to run
E2E / Build (push) Waiting to run
E2E / Core and plugins (push) Blocked by required conditions
E2E / plugin-workflow (push) Blocked by required conditions
E2E / plugin-workflow-approval (push) Blocked by required conditions
E2E / plugin-data-source-main (push) Blocked by required conditions
E2E / Comment on PR (push) Blocked by required conditions
NocoBase FrontEnd Test / frontend-test (18) (push) Waiting to run
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