Skip to content

Commit

Permalink
Map schemes json to SequentialScheme (#17813)
Browse files Browse the repository at this point in the history
  • Loading branch information
hbruch authored Dec 20, 2021
1 parent b82da5c commit 61a6aa0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion superset-frontend/src/setup/setupColors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
);
}

0 comments on commit 61a6aa0

Please sign in to comment.