Fix: force set document not dirty before close after save (#8888)

This commit is contained in:
shamoon authored and GitHub committed 2025-01-23 17:51:01 -08:00
1 parent 13cfd6f904
commit ca42762841
2 files changed
+34 -32

No files matched your search

@@ -848,12 +848,14 @@ export class DocumentDetailComponent
)
.pipe(
switchMap(({ nextDocId, updateResult }) => {
if (nextDocId && updateResult)
if (nextDocId && updateResult) {
this.openDocumentService.setDirty(this.document, false)
return this.openDocumentService
.closeDocument(this.document)
.pipe(
map((closeResult) => ({ updateResult, nextDocId, closeResult }))
)
}
})
)
.pipe(first())