diff --git a/services/web/app/src/Features/Project/ProjectEditorHandler.js b/services/web/app/src/Features/Project/ProjectEditorHandler.js index 4ba0f9f02a..8c00eefbfe 100644 --- a/services/web/app/src/Features/Project/ProjectEditorHandler.js +++ b/services/web/app/src/Features/Project/ProjectEditorHandler.js @@ -20,6 +20,9 @@ module.exports = ProjectEditorHandler = { buildProjectModelView(project, members, invites) { let owner, ownerFeatures + if (!Array.isArray(project.deletedDocs)) { + project.deletedDocs = [] + } project.deletedDocs.forEach(doc => { // The frontend does not use this field. delete doc.deletedAt