From d487ac471ed75050b095a65d16c68b93a7fa9e04 Mon Sep 17 00:00:00 2001 From: AlasDiablo <25723276+AlasDiablo@users.noreply.github.com> Date: Tue, 2 Jul 2024 10:12:28 +0200 Subject: [PATCH] fix(treemap): correctly handle colors change --- src/app/js/formats/vega/component/tree-map/TreeMapAdmin.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/app/js/formats/vega/component/tree-map/TreeMapAdmin.js b/src/app/js/formats/vega/component/tree-map/TreeMapAdmin.js index 855feba1a..b0e449aef 100644 --- a/src/app/js/formats/vega/component/tree-map/TreeMapAdmin.js +++ b/src/app/js/formats/vega/component/tree-map/TreeMapAdmin.js @@ -12,7 +12,6 @@ import { FormatDataParamsFieldSet, } from '../../../utils/components/field-set/FormatFieldSets'; import { - Box, FormControlLabel, FormGroup, MenuItem, @@ -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) => {