Skip to content

Commit

Permalink
[APM] Avoid negative offset for error marker on timeline (#76638)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
sorenlouv and elasticmachine committed Sep 4, 2020
1 parent e4464a1 commit fae1e02
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 fae1e02

Please sign in to comment.