Skip to content

Commit 0d8b3c4

Browse files
committed
Ensure that graph data is updated even when the Dashboard tab is inactive. pgadmin-org#8556
1 parent 8031c35 commit 0d8b3c4

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

runtime/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"packageManager": "yarn@3.8.7",
1414
"devDependencies": {
15-
"electron": "35.1.2",
15+
"electron": "35.1.3",
1616
"eslint": "^9.23.0"
1717
},
1818
"dependencies": {

runtime/yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -654,16 +654,16 @@ __metadata:
654654
languageName: node
655655
linkType: hard
656656

657-
"electron@npm:35.1.2":
658-
version: 35.1.2
659-
resolution: "electron@npm:35.1.2"
657+
"electron@npm:35.1.3":
658+
version: 35.1.3
659+
resolution: "electron@npm:35.1.3"
660660
dependencies:
661661
"@electron/get": ^2.0.0
662662
"@types/node": ^22.7.7
663663
extract-zip: ^2.0.1
664664
bin:
665665
electron: cli.js
666-
checksum: 9ff2dc27cd468f92d417ed9f681dd56cdfaac3ee8df8433a30ed4164594dad13c5663ebfb8b3e8916837648ba3ef8a85ac6099678d00a4715aa79257fc9c79c7
666+
checksum: 185ba0db22837708b3b12a4067698825bbb7b6cc21109c519253fdada766816be8c41f21be12249502cc14c782c8025297dbfdb9ba3d71f44e3ab58fdb647dba
667667
languageName: node
668668
linkType: hard
669669

@@ -1556,7 +1556,7 @@ __metadata:
15561556
resolution: "pgadmin4@workspace:."
15571557
dependencies:
15581558
axios: ^1.8.4
1559-
electron: 35.1.2
1559+
electron: 35.1.3
15601560
electron-context-menu: ^4.0.5
15611561
electron-dl: ^4.0.0
15621562
electron-store: ^10.0.0

web/pgadmin/dashboard/static/js/Graphs.jsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,6 @@ export default function Graphs({preferences, sid, did, pageVisible, enablePoll=t
164164
});
165165

166166
let path = getStatsUrl(sid, did, getFor);
167-
if (!pageVisible){
168-
return;
169-
}
170167
axios.get(path)
171168
.then((resp)=>{
172169
let data = resp.data;

0 commit comments

Comments
 (0)