Fix Chart Error Message Display (#3287)

This commit is contained in:
Grace Guo
2017-08-14 12:24:35 -07:00
committed by Maxime Beauchemin
parent 9a4e4d0443
commit 025ef5a0f1
7 changed files with 17 additions and 16 deletions

View File

@@ -63,6 +63,12 @@ export default function chartReducer(state = {}, action) {
}
return newState;
},
[actions.REMOVE_CHART_ALERT]() {
if (state.chartAlert !== null) {
return Object.assign({}, state, { chartAlert: null });
}
return state;
},
};
if (action.type in actionHandlers) {