superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: Fix time shift color assignements (#5065)
Date Thu, 24 May 2018 04:30:10 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 05061a7  Fix time shift color assignements (#5065)
05061a7 is described below

commit 05061a73ce1c5668f9042a4830401ff94b48b2e6
Author: Maxime Beauchemin <maximebeauchemin@gmail.com>
AuthorDate: Wed May 23 21:30:03 2018 -0700

    Fix time shift color assignements (#5065)
    
    closes https://github.com/apache/incubator-superset/pull/4765
---
 superset/assets/src/modules/colors.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/assets/src/modules/colors.js b/superset/assets/src/modules/colors.js
index c6ce01b..ac206b0 100644
--- a/superset/assets/src/modules/colors.js
+++ b/superset/assets/src/modules/colors.js
@@ -181,7 +181,7 @@ export const getColorFromScheme = (function () {
     const selectedScheme = scheme ? ALL_COLOR_SCHEMES[scheme] : ALL_COLOR_SCHEMES.bnbColors;
     let stringifyS = String(s).toLowerCase();
     // next line is for superset series that should have the same color
-    stringifyS = stringifyS.replace('---', '');
+    stringifyS = stringifyS.replace(' ---', '');
 
     if (forcedColor && !forcedColors[stringifyS]) {
       forcedColors[stringifyS] = forcedColor;

-- 
To stop receiving notification emails like this one, please contact
maximebeauchemin@apache.org.

Mime
View raw message