mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
include fallback for missing state file
This commit is contained in:
parent
8946f87ca6
commit
865e68051e
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ module.exports = {
|
|||
'project state file truncated'
|
||||
)
|
||||
}
|
||||
const array = result.toString().split('\n')
|
||||
const array = result ? result.toString().split('\n') : []
|
||||
const adjustedLength = Math.max(array.length, 1)
|
||||
const resourceList = array.slice(0, adjustedLength - 1)
|
||||
const oldState = array[adjustedLength - 1]
|
||||
|
|
Loading…
Reference in a new issue