Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Reduce debounce to avoid title erasing

Michael Shamoonb383e7dd0814
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 22c63ccc4..e751f59f8 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
@@ -94,10 +94,11 @@ export class DocumentDetailComponent implements OnInit, OnDestroy, DirtyComponen
private toastService: ToastService,
private settings: SettingsService) {
this.titleSubject.pipe(
- debounceTime(200),
+ debounceTime(1000),
distinctUntilChanged(),
takeUntil(this.unsubscribeNotifier)
).subscribe(titleValue => {
+ this.title = titleValue
this.documentForm.patchValue({'title': titleValue})
})
}