Skip to content

Commit 34775cc

Browse files
Abdullah KhanAbdullah Khan
authored andcommitted
feat(explore-suspect-attrs): Minor iteration
1 parent f7141fd commit 34775cc

File tree

1 file changed

+6
-2
lines changed
  • static/app/views/explore/components/suspectTags

1 file changed

+6
-2
lines changed

static/app/views/explore/components/suspectTags/charts.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,12 @@ function Chart({
152152
return '\u2014';
153153
}
154154

155-
const selectedParam = seriesParamsOrParam[0];
156-
const baselineParam = seriesParamsOrParam[1];
155+
const selectedParam = seriesParamsOrParam.find(
156+
s => s.seriesName === SELECTED_SERIES_NAME
157+
);
158+
const baselineParam = seriesParamsOrParam.find(
159+
s => s.seriesName === BASELINE_SERIES_NAME
160+
);
157161

158162
if (!selectedParam || !baselineParam) {
159163
throw new Error('selectedParam or baselineParam is not defined');

0 commit comments

Comments
 (0)