Skip to content

Commit

Permalink
fix(treemap): correctly handle colors change
Browse files Browse the repository at this point in the history
  • Loading branch information
AlasDiablo committed Jul 2, 2024
1 parent 11e005a commit d487ac4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/app/js/formats/vega/component/tree-map/TreeMapAdmin.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
FormatDataParamsFieldSet,
} from '../../../utils/components/field-set/FormatFieldSets';
import {
Box,
FormControlLabel,
FormGroup,
MenuItem,
Expand Down Expand Up @@ -139,11 +138,7 @@ const TreeMapAdmin = (props) => {
};

const handleColors = (colors) => {
updateAdminArgs(
'colors',
colors.split(' ') || defaultArgs.colors,
props,
);
updateAdminArgs('colors', colors || defaultArgs.colors, props);
};

const handleLayout = (e) => {
Expand Down

0 comments on commit d487ac4

Please sign in to comment.