Skip to content

Commit c742d54

Browse files
committed
web: fix isStaticMode to use the correct websocketManager property
The helper was checking app.wsManager.isStaticMode, but the app object only ever exposes app.websocketManager. As a result isStaticMode() always returned false, so the per-widget Update buttons (and auto-update calls) were not actually hidden in saved/static HTML reports. Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
1 parent c13c87f commit c742d54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/web/src/ui-utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// True when the app was bootstrapped from a saved/static report
77
// (i.e. there is no live WebSocket backend).
88
export function isStaticMode(app) {
9-
return !!app?.wsManager?.isStaticMode;
9+
return !!app?.websocketManager?.isStaticMode;
1010
}
1111

1212
// Make table column headers resizable by dragging.

0 commit comments

Comments
 (0)