Skip to content

Commit

Permalink
[APM] Avoid negative offset for error marker on timeline (#76638) (#7…
Browse files Browse the repository at this point in the history
…6745)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
sorenlouv and elasticmachine authored Sep 4, 2020
1 parent f4ea143 commit e8c41b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const getErrorMarks = (

return errorItems.map((error) => ({
type: 'errorMark',
offset: error.offset + error.skew,
offset: Math.max(error.offset + error.skew, 0),
verticalLine: false,
id: error.doc.error.id,
error: error.doc,
Expand Down

0 comments on commit e8c41b3

Please sign in to comment.