Skip to content

Commit 01ed729

Browse files
committed
add check array
1 parent fa8efc3 commit 01ed729

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)