Skip to content

Commit 9094c50

Browse files
Merge pull request #947 from plotly/oprstchn-fix/shamefullyAdjustSplitStyleTargetContainers
Oprstchn fix/shamefully adjust split style target containers
2 parents fa8efc3 + f1ce15b commit 9094c50

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-chart-editor",
33
"description": "plotly.js chart editor react component UI",
4-
"version": "0.38.0",
4+
"version": "0.38.1",
55
"author": "Plotly, Inc.",
66
"bugs": {
77
"url": "https://github.com/plotly/react-chart-editor/issues"

src/shame.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export const shamefullyAdjustSplitStyleTargetContainers = (graphDiv, {traceIndex
110110

111111
if (transform && transform.type === 'groupby' && transform.styles) {
112112
// Create style containers for all groups
113-
if (!transform.styles.length && update[attr]) {
113+
if (!transform.styles.length && update[attr] && Array.isArray(update[attr])) {
114114
const dedupedGroups = [];
115115
update[attr].forEach(group => {
116116
if (!dedupedGroups.includes(group)) {

0 commit comments

Comments
 (0)