Skip to content

Commit

Permalink
Code style fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bulyonov committed Aug 31, 2016
1 parent 4ee28b5 commit 1a40861
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/legends/discrete-color-legend.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ function fillItemsWithDefaults(items) {
item.color :
DISCRETE_COLOR_RANGE[i % DISCRETE_COLOR_RANGE.length],
disabled: Boolean(item.disabled)
}
};
});
}

function DiscreteColorLegend({items: initialItems, width, height, onItemClick}) {
function DiscreteColorLegend({items: initialItems, width, height,
onItemClick}) {
const updatedItems = fillItemsWithDefaults(initialItems);
return (
<div className="rv-discrete-color-legend" style={{width, height}}>
Expand Down

0 comments on commit 1a40861

Please sign in to comment.