diff --git a/js/plot/util/annotations/annotation.js b/js/plot/util/annotations/annotation.js index 8437d185..67986d09 100644 --- a/js/plot/util/annotations/annotation.js +++ b/js/plot/util/annotations/annotation.js @@ -49,7 +49,7 @@ module.exports = function(container, annotationsGroup) { var hoverTarget; if (opts && opts.d && !_.isEmpty(opts.d.annotations)) { - if (opts.d.annotations[0].code.slice(0, 6) === 'stats-') { + if (opts.d.annotations[0].code?.slice(0, 6) === 'stats-') { // NB: this (temporarily) disables the new explainer tooltips // for all stats widget components when stats are active if (opts.d.annotations[0].code !== 'stats-insufficient-data') { @@ -97,7 +97,7 @@ module.exports = function(container, annotationsGroup) { annotation.tooltip = function(opts, selection, hoverTarget) { opts = opts || {}; - if (opts.d.annotations[0].code.slice(0, 6) === 'stats-') { + if (opts.d.annotations[0].code?.slice(0, 6) === 'stats-') { if (container.type === 'daily') { opts.x = opts.x - (container.currentTranslation() - container.axisGutter()); } diff --git a/package.json b/package.json index e9c7d1d0..9615c810 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "node": "20.8.0" }, "packageManager": "yarn@3.6.4", - "version": "1.38.0-web-3886-basics-view-site-change-regression.1", + "version": "1.38.0-local-data-source.1", "description": "Tidepool's timeline data visualization", "repository": { "type": "git",