From dc8e64bcb1001e6792c62ab01feeaf1e67e10c08 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Tue, 8 Oct 2024 11:35:50 +0200 Subject: [PATCH] fix(ui): filter format while checking for latest sessions --- .../components/SessionList/SessionList.tsx | 4 ++-- frontend/app/mstore/searchStore.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/app/components/shared/SessionsTabOverview/components/SessionList/SessionList.tsx b/frontend/app/components/shared/SessionsTabOverview/components/SessionList/SessionList.tsx index c8c3ae5bf..b0e395d11 100644 --- a/frontend/app/components/shared/SessionsTabOverview/components/SessionList/SessionList.tsx +++ b/frontend/app/components/shared/SessionsTabOverview/components/SessionList/SessionList.tsx @@ -16,7 +16,7 @@ type SessionStatus = { count: number; } -const AUTOREFRESH_INTERVAL = 5 * 60 * 1000; +const AUTO_REFRESH_INTERVAL = 5 * 60 * 1000; let sessionTimeOut: any = null; let sessionStatusTimeOut: any = null; @@ -112,7 +112,7 @@ function SessionList() { if (!document.hidden) { searchStore.checkForLatestSessions(); } - }, AUTOREFRESH_INTERVAL); + }, AUTO_REFRESH_INTERVAL); return () => clearInterval(id); }, []); diff --git a/frontend/app/mstore/searchStore.ts b/frontend/app/mstore/searchStore.ts index 4da5317a6..96fe1c549 100644 --- a/frontend/app/mstore/searchStore.ts +++ b/frontend/app/mstore/searchStore.ts @@ -177,7 +177,7 @@ class SearchStore { } checkForLatestSessions() { - const filter = this.instance.toData(); + const filter = this.instance.toSearch(); if (this.latestRequestTime) { const period = Period({ rangeName: CUSTOM_RANGE, start: this.latestRequestTime, end: Date.now() }); const newTimestamps: any = period.toJSON();