From 6c2468650900fbd14fe017ac9ed9f306a98b0d18 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 1 May 2024 12:07:19 -0700 Subject: [PATCH] Fix: always refresh document after save --- .../components/document-detail/document-detail.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src-ui/src/app/components/document-detail/document-detail.component.ts b/src-ui/src/app/components/document-detail/document-detail.component.ts index db0d16f5a..aea7ca472 100644 --- a/src-ui/src/app/components/document-detail/document-detail.component.ts +++ b/src-ui/src/app/components/document-detail/document-detail.component.ts @@ -638,13 +638,17 @@ export class DocumentDetailComponent this.documentForm.patchValue(docValues) this.store.next(this.documentForm.value) this.openDocumentService.setDirty(this.document, false) + this.openDocumentService.save() this.toastService.showInfo($localize`Document saved successfully.`) this.networkActive = false this.error = null - close && + if (close) { this.close(() => this.openDocumentService.refreshDocument(this.documentId) ) + } else { + this.openDocumentService.refreshDocument(this.documentId) + } }, error: (error) => { this.networkActive = false