1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 05:43:41 +00:00

AC-2723 Defect Range Too large error toast on reporting events is not being displayed (#9478)

This commit is contained in:
KiruthigaManivannan
2024-06-06 20:05:21 +05:30
committed by GitHub
parent c06211829f
commit 47e66bfeb4

View File

@@ -97,19 +97,15 @@ export abstract class BaseEventsComponent {
this.loading = true; this.loading = true;
let events: EventView[] = []; let events: EventView[] = [];
let promise: Promise<any>; let promise: Promise<any>;
try { promise = this.loadAndParseEvents(
promise = this.loadAndParseEvents( dates[0],
dates[0], dates[1],
dates[1], clearExisting ? null : this.continuationToken,
clearExisting ? null : this.continuationToken, );
);
const result = await promise; const result = await promise;
this.continuationToken = result.continuationToken; this.continuationToken = result.continuationToken;
events = result.events; events = result.events;
} catch (e) {
this.logService.error(`Handled exception: ${e}`);
}
if (!clearExisting && this.events != null && this.events.length > 0) { if (!clearExisting && this.events != null && this.events.length > 0) {
this.events = this.events.concat(events); this.events = this.events.concat(events);