src/components/legend.js
Function merge
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
merge: function merge(props) {
var swatchWidth = props.swatchDimensions.width;
var swatchHeight = props.swatchDimensions.height;
// Swatch: Remove existing swatch, set class, and create swatch