Skip to content

Commit

Permalink
Map schemes json to SequentialScheme
Browse files Browse the repository at this point in the history
  • Loading branch information
hbruch committed Dec 18, 2021
1 parent b82da5c commit 5050118
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 5050118

Please sign in to comment.