From a3e9f430689981300d6afade0c4b086ab5d7707b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B0=D0=B5=D0=B2=20=D0=95=D0=B2=D0=B3=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B9?= Date: Mon, 21 Nov 2022 19:27:06 +0300 Subject: [PATCH] fix(Highcharts plugin): fix tooltip golidays handling --- src/plugins/highcharts/renderer/helpers/config/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/highcharts/renderer/helpers/config/config.js b/src/plugins/highcharts/renderer/helpers/config/config.js index 753b3213..ec2cd824 100644 --- a/src/plugins/highcharts/renderer/helpers/config/config.js +++ b/src/plugins/highcharts/renderer/helpers/config/config.js @@ -630,10 +630,10 @@ function getTooltip(tooltip, options, comments, holidays) { if (region !== 'tot') { json.region = region; } - if (holidays.holiday[region][pointTimestamp]) { + if (holidays?.holiday[region][pointTimestamp]) { json.holiday = true; json.holidayText = holidays.holiday[region][pointTimestamp]; - } else if (holidays.weekend[region][pointTimestamp]) { + } else if (holidays?.weekend[region][pointTimestamp]) { json.weekend = true; }