Skip to content

Commit

Permalink
Fix loading of carrier colors after data import
Browse files Browse the repository at this point in the history
  • Loading branch information
erssebaggala committed Oct 15, 2019
1 parent 0819fc0 commit f439913
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/gis/GISMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ class GISMap extends React.Component{

ipcRenderer.removeListener("parse-cm-request", this.importFileBGJobListener);
//Reload the carrier colors
if(this.props.carrierColors.length === 0) this.props.dispatch(gisFetchPlanFrequencies());
this.props.dispatch(gisFetchPlanFrequencies());

this.refreshMap();
}
Expand Down
2 changes: 1 addition & 1 deletion src/modules/gis/gis-reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function gis(state = initialState, action) {
case GIS_UPDATE_PLAN_CARRIERS:
var colorMap = {};
action.frequencies.forEach((f, i) => {
colorMap[f] = state.carrierColors[i];
colorMap[f] = state.carrierColorMap[f] || state.carrierColors[i];
});
return {
...state,
Expand Down

0 comments on commit f439913

Please sign in to comment.