[APM] Avoid negative offset for error marker on timeline (#76638) (#76745)

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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Søren Louv-Jansen 2020-09-04 12:54:55 +02:00 committed by GitHub
parent f4ea143e43
commit e8c41b3330
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,