mirror of
https://github.com/docmost/docmost.git
synced 2025-11-16 20:31:10 +10:00
fix duplicated page parenting
This commit is contained in:
@ -381,9 +381,9 @@ export class PageService {
|
|||||||
workspaceId: page.workspaceId,
|
workspaceId: page.workspaceId,
|
||||||
creatorId: authUser.id,
|
creatorId: authUser.id,
|
||||||
lastUpdatedById: authUser.id,
|
lastUpdatedById: authUser.id,
|
||||||
parentPageId: page.parentPageId
|
parentPageId: page.id === rootPage.id
|
||||||
? pageMap.get(page.parentPageId)?.newPageId
|
? (isDuplicateInSameSpace ? rootPage.parentPageId : null)
|
||||||
: null,
|
: (page.parentPageId ? pageMap.get(page.parentPageId)?.newPageId : null),
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user