From 01ed729e03231fb3f761996c9aea11d9af428602 Mon Sep 17 00:00:00 2001 From: oprstchn Date: Wed, 3 Jul 2019 12:40:09 +0900 Subject: [PATCH] add check array --- src/shame.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shame.js b/src/shame.js index e20f1da6d..10c40499e 100644 --- a/src/shame.js +++ b/src/shame.js @@ -110,7 +110,7 @@ export const shamefullyAdjustSplitStyleTargetContainers = (graphDiv, {traceIndex if (transform && transform.type === 'groupby' && transform.styles) { // Create style containers for all groups - if (!transform.styles.length && update[attr]) { + if (!transform.styles.length && update[attr] && Array.isArray(update[attr])) { const dedupedGroups = []; update[attr].forEach(group => { if (!dedupedGroups.includes(group)) {