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

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),
);
});
}