From 34232ed23c19936ed87a44e30cc38c83bf650ee3 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Mon, 25 Nov 2024 13:43:07 +0100 Subject: [PATCH] Fix sessions list (#2779) * fix(ui): sessions list persist page, show latest sessions * fix(ui): latest sessions check clear the list --- frontend/app/mstore/searchStore.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/app/mstore/searchStore.ts b/frontend/app/mstore/searchStore.ts index 87dca78c2..3aac97058 100644 --- a/frontend/app/mstore/searchStore.ts +++ b/frontend/app/mstore/searchStore.ts @@ -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,