Fix: force set document not dirty before close after save

This commit is contained in:
shamoon 2025-01-22 03:38:55 -08:00
parent 13cfd6f904
commit 0c37b908b7
No known key found for this signature in database

View File

@ -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())