mirror of https://github.com/apache/superset.git
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,
|
||||
colorNamespace,
|
||||
);
|
||||
const labelColors = scale.getColorMap();
|
||||
const labelColors = colorScheme ? scale.getColorMap() : {};
|
||||
const data = {
|
||||
positions,
|
||||
expanded_slices: expandedSlices,
|
||||
|
|
|
@ -110,7 +110,7 @@ class SaveModal extends React.PureComponent {
|
|||
colorScheme,
|
||||
colorNamespace,
|
||||
);
|
||||
const labelColors = scale.getColorMap();
|
||||
const labelColors = colorScheme ? scale.getColorMap() : {};
|
||||
const data = {
|
||||
positions,
|
||||
css,
|
||||
|
|
Loading…
Reference in New Issue