fix(explore): switch to correct scheme registry for custom sequential color schemes (#15314)

* Switch to correct scheme registry for custom sequential color schemes

* Linting
This commit is contained in:
Sonya Smirnova 2021-06-29 04:43:42 -04:00 committed by GitHub
parent b8f4e7d093
commit fa6b25d257
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -58,7 +58,10 @@ export default function setupColors(
if (extraSequentialColorSchemes?.length > 0) {
extraSequentialColorSchemes.forEach(scheme => {
categoricalSchemeRegistry.registerValue(scheme.id, scheme);
sequentialSchemeRegistry.registerValue(
scheme.id,
new SequentialScheme(scheme),
);
});
}