mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +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
@@ -92,6 +92,7 @@ const updateProjectSettingsSchema = z.object({
|
||||
name: z.string().optional(),
|
||||
rootDocId: zz.objectId().optional(),
|
||||
spellCheckLanguage: z.string().optional(),
|
||||
referenceFormat: z.enum(['bibtex', 'biblatex']).optional(),
|
||||
}),
|
||||
})
|
||||
|
||||
@@ -144,6 +145,13 @@ const _ProjectController = {
|
||||
)
|
||||
}
|
||||
|
||||
if (body.referenceFormat != null) {
|
||||
await EditorController.promises.setReferenceFormat(
|
||||
projectId,
|
||||
body.referenceFormat
|
||||
)
|
||||
}
|
||||
|
||||
res.sendStatus(204)
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user