mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-11 15:10:48 +02:00
include fallback for missing state file
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user