1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-06 05:28:51 +02: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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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