mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix Dashboard State refresh issue with the active sessions only.
This commit is contained in:
parent
87ba177ff3
commit
d0e6090761
@ -930,7 +930,7 @@ function Dashboard({
|
|||||||
}, [nodeData, treeNodeInfo, prefStore, refresh, mainTabVal, logCol, logFormat]);
|
}, [nodeData, treeNodeInfo, prefStore, refresh, mainTabVal, logCol, logFormat]);
|
||||||
|
|
||||||
const filteredDashData = useMemo(()=>{
|
const filteredDashData = useMemo(()=>{
|
||||||
if (mainTabVal == 1 && activeOnly) {
|
if (mainTabVal == 1 && activeOnly && dashData.length > 0) {
|
||||||
// we want to show 'idle in transaction', 'active', 'active in transaction', and future non-blank, non-"idle" status values
|
// we want to show 'idle in transaction', 'active', 'active in transaction', and future non-blank, non-"idle" status values
|
||||||
return dashData[0]['activity'].filter((r)=>(r.state && r.state != '' && r.state != 'idle'));
|
return dashData[0]['activity'].filter((r)=>(r.state && r.state != '' && r.state != 'idle'));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user