Skip to content

Commit

Permalink
fix: ignoring redux init event
Browse files Browse the repository at this point in the history
  • Loading branch information
laszlocph committed Mar 14, 2024
1 parent d9af779 commit 89ee250
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions web/dashboard/src/redux/redux.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ export function rootReducer(state = initialState, action) {
case ACTION_TYPE_ENVSPINNEDOUT:
return eventHandlers.envSpinnedOut(state, action.payload)
default:
if (action.type && action.type.startsWith('@@redux/INIT')) { // Ignoring Redux ActionTypes.INIT action
return state
}
console.log('Could not process redux event: ' + JSON.stringify(action));
return state;
}
Expand Down Expand Up @@ -260,9 +263,12 @@ function processStreamingEvent(state, event) {
return eventHandlers.fluxEventsUpdated(state, event);
case EVENT_DEPLOYMENT_DETAILS_EVENT:
return eventHandlers.deploymentDetails(state, event);
case EVENT_POD_DETAILS_EVENT:
return eventHandlers.podDetails(state, event);
case EVENT_POD_DETAILS_EVENT:
return eventHandlers.podDetails(state, event);
default:
if (event.type && event.type.startsWith('@@redux/INIT')) { // Ignoring Redux ActionTypes.INIT action
return state
}
console.log('Could not process streaming event: ' + JSON.stringify(event));
return state;
}
Expand Down

0 comments on commit 89ee250

Please sign in to comment.