mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
fix: do not save colors without a color scheme (#7347)
This commit is contained in:
parent
8fd7d4b670
commit
5f14b559e2
@ -222,7 +222,7 @@ class Header extends React.PureComponent {
|
|||||||
colorScheme,
|
colorScheme,
|
||||||
colorNamespace,
|
colorNamespace,
|
||||||
);
|
);
|
||||||
const labelColors = scale.getColorMap();
|
const labelColors = colorScheme ? scale.getColorMap() : {};
|
||||||
const data = {
|
const data = {
|
||||||
positions,
|
positions,
|
||||||
expanded_slices: expandedSlices,
|
expanded_slices: expandedSlices,
|
||||||
|
@ -110,7 +110,7 @@ class SaveModal extends React.PureComponent {
|
|||||||
colorScheme,
|
colorScheme,
|
||||||
colorNamespace,
|
colorNamespace,
|
||||||
);
|
);
|
||||||
const labelColors = scale.getColorMap();
|
const labelColors = colorScheme ? scale.getColorMap() : {};
|
||||||
const data = {
|
const data = {
|
||||||
positions,
|
positions,
|
||||||
css,
|
css,
|
||||||
|
Loading…
Reference in New Issue
Block a user