Persistent Drawings

This commit is contained in:
louisnw
2023-11-23 19:25:36 +00:00
parent 631afd450f
commit f798e5f944
2 changed files with 3 additions and 4 deletions

View File

@ -404,7 +404,7 @@ function calculateTrendLine(startDate, startValue, endDate, endValue, chart, ray
}
if (startIndex === -1) {
return []
throw new Error(`Could not calculate start index from time ${stampToDate(startDate)}.`)
}
let endIndex
if (ray) {