Commit 187097fd authored by Gijs Hendriksen's avatar Gijs Hendriksen
Browse files

Merge branch 'fix/event-loading-initial-state' into 'master'

Change event reducer to reset events to initial state on FETCHING action

See merge request thalia/ThaliApp-react!110
parents ccb00fad 78856e8b
...@@ -24,7 +24,7 @@ export default function loadEvent(state = initialState, action = {}) { ...@@ -24,7 +24,7 @@ export default function loadEvent(state = initialState, action = {}) {
switch (action.type) { switch (action.type) {
case eventActions.FETCHING: { case eventActions.FETCHING: {
return { return {
...state, ...initialState,
loading: true, loading: true,
}; };
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment