mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #11412 from overleaf/bg-override-history-initialisation
allow history initialisation to be overridden GitOrigin-RevId: e38c2147f7d335d368579ca53033d08906eb287b
This commit is contained in:
parent
435be3073f
commit
5e9b26ae0a
1 changed files with 3 additions and 1 deletions
|
@ -158,7 +158,9 @@ async function _createBlankProject(
|
|||
attributes.name = projectName
|
||||
const project = new Project(attributes)
|
||||
|
||||
if (project.overleaf.history.id == null) {
|
||||
// Initialise the history unless the caller has overridden it in the attributes
|
||||
// (to allow scripted creation of projects without full project history)
|
||||
if (project.overleaf.history.id == null && !attributes.overleaf) {
|
||||
const historyId = await HistoryManager.promises.initializeProject(
|
||||
project._id
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue