Skip to content

Commit

Permalink
Map schemes json to SequentialScheme (apache#17813)
Browse files Browse the repository at this point in the history
  • Loading branch information
hbruch authored and shcoderAlex committed Feb 7, 2022
1 parent 28046bf commit b70465f
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 b70465f

Please sign in to comment.