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 <[email protected]>
  • Loading branch information
sorenlouv and elasticmachine committed Sep 4, 2020
1 parent d001cf2 commit 82970a9
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 82970a9

Please sign in to comment.