diff --git a/apps/desktop/src/autofill/services/desktop-autofill.service.ts b/apps/desktop/src/autofill/services/desktop-autofill.service.ts index ea9fddb476b..20d85a66f77 100644 --- a/apps/desktop/src/autofill/services/desktop-autofill.service.ts +++ b/apps/desktop/src/autofill/services/desktop-autofill.service.ts @@ -83,9 +83,9 @@ export class DesktopAutofillService implements OnDestroy { switchMap(([userId]) => this.cipherService.cipherViews$(userId)), ); }), - debounceTime(100), // just a precaution to not spam the sync if there are multiple changes (we typically observe a null change) // No filter for empty arrays here - we want to sync even if there are 0 items filter((cipherViewMap) => cipherViewMap !== null), + debounceTime(100), // just a precaution to not spam the sync if there are multiple changes mergeMap((cipherViewMap) => this.sync(Object.values(cipherViewMap ?? []))), takeUntil(this.destroy$),