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:
parent
954bfbf8f7
commit
34232ed23c
1 changed files with 3 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue