diff --git a/src/containers/line-mode.jsx b/src/containers/line-mode.jsx index 5099d06a..f9043ad4 100644 --- a/src/containers/line-mode.jsx +++ b/src/containers/line-mode.jsx @@ -280,6 +280,7 @@ class LineMode extends React.Component { LineMode.propTypes = { clearSelectedItems: PropTypes.func.isRequired, + clearStrokeGradient: PropTypes.func.isRequired, colorState: PropTypes.shape({ fillColor: ColorStyleProptype, strokeColor: ColorStyleProptype, diff --git a/src/helper/style-path.js b/src/helper/style-path.js index 3dd83f37..2dae24d7 100644 --- a/src/helper/style-path.js +++ b/src/helper/style-path.js @@ -305,7 +305,7 @@ const applyGradientTypeToSelection = function (gradientType, applyToStroke, text itemColor.gradient.stops && itemColor.gradient.stops.length === 2 && itemColor.gradient.stops[0].color.alpha === 0 && - itemColor.gradient.stops[1].color.alpha === 0) + itemColor.gradient.stops[1].color.alpha === 0); const hasGradientNow = itemColor1 || itemColor2; if (noStrokeOriginally && hasGradientNow) { // Make outline visible @@ -463,7 +463,7 @@ const getColorsFromSelection = function (selectedItems, bitmapMode) { let strokeColorString = primary; const strokeColor2String = secondary; - let strokeGradientType = gradientType; + const strokeGradientType = gradientType; // If the item's stroke width is 0, pretend the stroke color is null if (!item.strokeWidth) {