]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Reduce debounce to avoid title erasing 219/head
authorMichael Shamoon <4887959+shamoon@users.noreply.github.com>
Sun, 6 Mar 2022 04:09:44 +0000 (20:09 -0800)
committerMichael Shamoon <4887959+shamoon@users.noreply.github.com>
Sun, 6 Mar 2022 04:12:17 +0000 (20:12 -0800)
Closes #216

src-ui/src/app/components/document-detail/document-detail.component.ts

index 22c63ccc48ba9a63e7ecbce0932c35fb194b406f..e751f59f88f4ffc859883a15975b930955fbca79 100644 (file)
@@ -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})
       })
     }