Skip to content

Commit e5049c1

Browse files
committed
Use for Each
1 parent ef3ff22 commit e5049c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shame.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export const shamefullyCreateSplitStyles = (
125125

126126
let indexOfSplitTransform = null;
127127

128-
graphDiv.data[traceIndex].transforms.filter((t, i) => {
128+
graphDiv.data[traceIndex].transforms.forEach((t, i) => {
129129
if (t.type === 'groupby') {
130130
indexOfSplitTransform = i;
131131
}
@@ -134,7 +134,7 @@ export const shamefullyCreateSplitStyles = (
134134
function getProp(group) {
135135
let indexOfStyleObject = null;
136136

137-
graphDiv.data[traceIndex].transforms[indexOfSplitTransform].styles.filter(
137+
graphDiv.data[traceIndex].transforms[indexOfSplitTransform].styles.forEach(
138138
(s, i) => {
139139
if (s.target.toString() === group) {
140140
indexOfStyleObject = i;

0 commit comments

Comments
 (0)