mirror of https://github.com/apache/superset.git
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:
parent
b8f4e7d093
commit
fa6b25d257
|
@ -58,7 +58,10 @@ export default function setupColors(
|
||||||
|
|
||||||
if (extraSequentialColorSchemes?.length > 0) {
|
if (extraSequentialColorSchemes?.length > 0) {
|
||||||
extraSequentialColorSchemes.forEach(scheme => {
|
extraSequentialColorSchemes.forEach(scheme => {
|
||||||
categoricalSchemeRegistry.registerValue(scheme.id, scheme);
|
sequentialSchemeRegistry.registerValue(
|
||||||
|
scheme.id,
|
||||||
|
new SequentialScheme(scheme),
|
||||||
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue