This commit is contained in:
Juergen Kunz
2025-07-04 18:50:15 +00:00
parent 5d4bf4eff8
commit aed9151998
3 changed files with 9 additions and 25 deletions

View File

@@ -321,7 +321,6 @@ export const toggleAutoRefreshAction = uiStatePart.createAction(async (statePart
// Set Active View Action
export const setActiveViewAction = uiStatePart.createAction<string>(async (statePartArg, viewName) => {
const currentState = statePartArg.getState();
console.log('[SetActiveView]', currentState.activeView, '->', viewName);
// If switching to network view, ensure we fetch network data
if (viewName === 'network' && currentState.activeView !== 'network') {
@@ -402,7 +401,6 @@ export const fetchNetworkStatsAction = networkStatePart.createAction(async (stat
async function dispatchCombinedRefreshAction() {
const context = getActionContext();
const currentView = uiStatePart.getState().activeView;
console.log('[CombinedRefresh] activeView:', currentView, 'will fetch network:', currentView === 'network');
try {
// Always fetch basic stats for dashboard widgets