From 61a6aa0f97b925408738b47ff0ce5c5a7fd8d557 Mon Sep 17 00:00:00 2001 From: Holger Bruch Date: Mon, 20 Dec 2021 08:38:24 +0100 Subject: [PATCH] Map schemes json to SequentialScheme (#17813) --- 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', ); }