Fix: correct save hotkey action when no next document exists (#11027)

This commit is contained in:
shamoon
2025-10-07 07:20:11 -07:00
committed by GitHub
parent 6164bac66e
commit e08e34fb90
2 changed files with 19 additions and 5 deletions

View File

@@ -615,7 +615,10 @@ export class DocumentDetailComponent
})
.pipe(takeUntil(this.unsubscribeNotifier))
.subscribe(() => {
if (this.openDocumentService.isDirty(this.document)) this.saveEditNext()
if (this.openDocumentService.isDirty(this.document)) {
if (this.hasNext()) this.saveEditNext()
else this.save(true)
}
})
}