Mark as pristine on reset

This commit is contained in:
shamoon
2025-03-27 19:27:49 -07:00
parent ec5a63cbef
commit 5f0603fa50

View File

@@ -783,6 +783,7 @@ export class DocumentDetailComponent
this.title = doc.title this.title = doc.title
this.updateFormForCustomFields() this.updateFormForCustomFields()
this.documentForm.patchValue(doc) this.documentForm.patchValue(doc)
this.documentForm.markAsPristine()
this.openDocumentService.setDirty(doc, false) this.openDocumentService.setDirty(doc, false)
}, },
error: () => { error: () => {