From 2df38731a64e0755fcee15f638eeeecc35e22b14 Mon Sep 17 00:00:00 2001 From: Filip Barl Date: Tue, 14 Nov 2017 17:26:57 +0100 Subject: [PATCH] Fix some warnings. --- client/app/scripts/components/sparkline.js | 2 +- client/app/scripts/components/view-mode-selector.js | 2 +- client/package.json | 2 +- client/yarn.lock | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/client/app/scripts/components/sparkline.js b/client/app/scripts/components/sparkline.js index 2160b7085a..2fc767a53e 100644 --- a/client/app/scripts/components/sparkline.js +++ b/client/app/scripts/components/sparkline.js @@ -105,7 +105,7 @@ export default class Sparkline extends React.Component { ? this.props.hoverColor : this.props.strokeColor; const strokeWidth = this.props.strokeWidth * (this.props.hovered ? HOVER_STROKE_MULTIPLY : 1); - const strokeDasharray = hasData || `${dash}, ${dash}`; + const strokeDasharray = hasData ? undefined : `${dash}, ${dash}`; const radius = this.props.circleRadius * (this.props.hovered ? HOVER_RADIUS_MULTIPLY : 1); const fillOpacity = this.props.hovered ? 1 : 0.6; const circleColor = hasData && this.props.hovered ? strokeColor : strokeColor; diff --git a/client/app/scripts/components/view-mode-selector.js b/client/app/scripts/components/view-mode-selector.js index cf2e2825d9..b2a2b75ce3 100644 --- a/client/app/scripts/components/view-mode-selector.js +++ b/client/app/scripts/components/view-mode-selector.js @@ -42,7 +42,7 @@ class ViewModeSelector extends React.Component {
{label} diff --git a/client/package.json b/client/package.json index 6c2e221adf..3f4e387e24 100644 --- a/client/package.json +++ b/client/package.json @@ -43,7 +43,7 @@ "reselect": "3.0.1", "reselect-map": "1.0.3", "styled-components": "^2.2.1", - "weaveworks-ui-components": "git+https://github.com/weaveworks/ui-components.git#v0.2.0", + "weaveworks-ui-components": "git+https://github.com/weaveworks/ui-components.git#v0.2.1", "whatwg-fetch": "2.0.3", "xterm": "2.9.2" }, diff --git a/client/yarn.lock b/client/yarn.lock index 13c07147b4..ad0996749f 100644 --- a/client/yarn.lock +++ b/client/yarn.lock @@ -6487,9 +6487,9 @@ wd@^0.4.0: underscore.string "~3.0.3" vargs "~0.1.0" -"weaveworks-ui-components@git+https://github.com/weaveworks/ui-components.git#v0.2.0": - version "0.2.0" - resolved "git+https://github.com/weaveworks/ui-components.git#b39494abf98d8c4226d885370129870344027e59" +"weaveworks-ui-components@git+https://github.com/weaveworks/ui-components.git#v0.2.1": + version "0.2.1" + resolved "git+https://github.com/weaveworks/ui-components.git#32aeac77d7847e0d342f47aab229073bd729a383" dependencies: babel-cli "^6.18.0" babel-plugin-transform-export-extensions "6.8.0"