Fix sessions list (#2779)

* fix(ui): sessions list persist page, show latest sessions

* fix(ui): latest sessions check clear the list
This commit is contained in:
Shekar Siri 2024-11-25 13:43:07 +01:00 committed by GitHub
parent 954bfbf8f7
commit 34232ed23c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -228,8 +228,8 @@ class SearchStore {
if (this.latestRequestTime) {
const period = Period({ rangeName: CUSTOM_RANGE, start: this.latestRequestTime, end: Date.now() });
const newTimestamps: any = period.toJSON();
filter.startTimestamp = newTimestamps.startDate;
filter.endTimestamp = newTimestamps.endDate;
filter.startDate = newTimestamps.startDate;
filter.endDate = newTimestamps.endDate;
}
searchService.checkLatestSessions(filter).then((response: any) => {
runInAction(() => {
@ -337,6 +337,7 @@ class SearchStore {
}
this.latestRequestTime = Date.now();
this.latestList = List();
await sessionStore.fetchSessions({
...filter,