fix: Two restore options when an archived document is deleted (#2194)
* Merge two menu items * Add deletedAt guard condition in document unarchive policy * Make the parentDocumentId null * Update test
This commit is contained in:
@@ -637,7 +637,7 @@ Document.prototype.unarchive = async function (userId: string) {
|
||||
},
|
||||
},
|
||||
});
|
||||
if (!parent) this.parentDocumentId = undefined;
|
||||
if (!parent) this.parentDocumentId = null;
|
||||
}
|
||||
|
||||
if (!this.template) {
|
||||
|
||||
Reference in New Issue
Block a user