fix(ui): filter format while checking for latest sessions
This commit is contained in:
parent
d1e4a80819
commit
dc8e64bcb1
2 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}, []);
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue