Skip to content

Commit c7d781b

Browse files
authored
Merge pull request #628 from MetaCell/feature/627
#627 fix: Fix sublevel color picker
2 parents cf2a063 + 92109ff commit c7d781b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

webapp/components/general/ControlPanelTreeItem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ const ControlPanelTreeItem = (props) => {
172172
}
173173

174174
const handleLeafColorChange = (event, nodeId, colorGenerator) => {
175-
const updateInstances = instances.filter((instance) => !instance.pathInstance.startsWith(nodeId));
175+
const updateInstances = instances.filter((instance) => !instance.instancePath.startsWith(nodeId));
176176
updateInstances.push({
177177
instancePath: nodeId,
178178
color: translateColor(colorGenerator())

0 commit comments

Comments
 (0)