From 505011854a5bdfa337cfe7e7cc983a50a1d2a11b Mon Sep 17 00:00:00 2001 From: Holger Bruch Date: Sat, 18 Dec 2021 14:24:40 +0100 Subject: [PATCH] Map schemes json to SequentialScheme --- superset-frontend/src/setup/setupColors.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/superset-frontend/src/setup/setupColors.ts b/superset-frontend/src/setup/setupColors.ts index 7865e4b2a0ff6..b5603cf84d9ad 100644 --- a/superset-frontend/src/setup/setupColors.ts +++ b/superset-frontend/src/setup/setupColors.ts @@ -69,7 +69,11 @@ export default function setupColors( registerColorSchemes( // @ts-ignore getSequentialSchemeRegistry(), - [...SequentialCommon, ...SequentialD3, ...extraSequentialColorSchemes], + [ + ...SequentialCommon, + ...SequentialD3, + ...extraSequentialColorSchemes.map(s => new SequentialScheme(s)), + ], 'superset_seq_1', ); }