Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Amardeepsingh Siglani <[email protected]>

Signed-off-by: Amardeepsingh Siglani <[email protected]>
(cherry picked from commit c117f3f)

Co-authored-by: Amardeepsingh Siglani <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and amsiglan authored Dec 21, 2022
1 parent b0fe3a5 commit c1520c3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ export function getDataFromResponse(response, fieldName, monitorType) {
const buckets = _.get(response, 'aggregations.composite_agg.buckets', []);
return buckets
.map((bucket) => getXYValuesByFieldName(bucket, fieldName))
.filter(filterInvalidYValues);
.filter(filterInvalidYValues)
.sort((a, b) => a.x - b.x);
}
}

Expand Down

0 comments on commit c1520c3

Please sign in to comment.