Skip to content

Commit

Permalink
fix: do not save colors without a color scheme (#7347)
Browse files Browse the repository at this point in the history
  • Loading branch information
khtruong authored and xtinec committed Apr 22, 2019
1 parent 8fd7d4b commit 5f14b55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion superset/assets/src/dashboard/components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion superset/assets/src/dashboard/components/SaveModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class SaveModal extends React.PureComponent {
colorScheme,
colorNamespace,
);
const labelColors = scale.getColorMap();
const labelColors = colorScheme ? scale.getColorMap() : {};
const data = {
positions,
css,
Expand Down

0 comments on commit 5f14b55

Please sign in to comment.