Skip to content

Commit

Permalink
Reset station state when data reload
Browse files Browse the repository at this point in the history
  • Loading branch information
sheldhur committed Jan 4, 2018
1 parent 3b5d6a3 commit 4846a28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/actions/station.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ export function getData(dispatch, getState, action, args) {

export function getLatitudeAvgValues() {
return (dispatch, getState) => {
dispatch(resetStation());
dispatch(setLoading(true));
getData(dispatch, getState, 'getLatitudeAvgValues');
};
Expand Down

0 comments on commit 4846a28

Please sign in to comment.