mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 20:31:34 +02:00
Handle undefined rootDoc when restoring a file (#28118)
GitOrigin-RevId: f3aa32d2443f3fffbda8a10cc35d5dec3db71143
This commit is contained in:
committed by
Copybot
parent
02dd2a511c
commit
a43ca75a79
@@ -143,7 +143,11 @@ const RestoreManager = {
|
||||
userId
|
||||
)
|
||||
|
||||
if (file.element._id.toString() === project.rootDoc_id.toString()) {
|
||||
if (
|
||||
file.element._id &&
|
||||
project.rootDoc_id &&
|
||||
file.element._id.toString() === project.rootDoc_id.toString()
|
||||
) {
|
||||
hadDeletedRootFile = true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user