fix doc detail discard perm changes

This commit is contained in:
shamoon 2023-03-03 19:22:11 -08:00
parent e373ca7bdc
commit 9902c4745d

View File

@ -446,6 +446,10 @@ export class DocumentDetailComponent
.subscribe({
next: (doc) => {
Object.assign(this.document, doc)
doc['permissions_form'] = {
owner: doc.owner,
set_permissions: doc.permissions,
}
this.title = doc.title
this.documentForm.patchValue(doc)
this.openDocumentService.setDirty(doc, false)