mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Merge pull request #35739 from overleaf/mfb-bring-main-bibliography-to-top-level
Bring main bibliography file to the top level settings GitOrigin-RevId: 4c4d4927067995d947c6d0656425760ce56f9435
This commit is contained in:
committed by
Copybot
parent
6f8a1be171
commit
02d36687cd
@@ -103,12 +103,18 @@ export const IdeReactProvider: FC<React.PropsWithChildren> = ({ children }) => {
|
||||
function handleJoinProjectResponse({
|
||||
project: {
|
||||
rootDoc_id: rootDocId,
|
||||
mainBibliographyDoc_id: mainBibliographyDocId,
|
||||
publicAccesLevel: publicAccessLevel,
|
||||
..._project
|
||||
},
|
||||
permissionsLevel,
|
||||
}: JoinProjectPayload) {
|
||||
const project = { ..._project, rootDocId, publicAccessLevel }
|
||||
const project = {
|
||||
..._project,
|
||||
rootDocId,
|
||||
mainBibliographyDocId,
|
||||
publicAccessLevel,
|
||||
}
|
||||
|
||||
// Cast the project from the payload as ProjectMetadata to ensure it has
|
||||
// the correct type for the context. It must be close enough because the
|
||||
|
||||
Reference in New Issue
Block a user