From d7247e2db253cdbb651aa4bcc388cc89a9735b39 Mon Sep 17 00:00:00 2001
From: syuilo <Syuilotan@yahoo.co.jp>
Date: Tue, 12 Jul 2022 22:42:50 +0900
Subject: chore(client): tweak ui

---
 packages/client/src/components/chart.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'packages/client/src/components/chart.vue')

diff --git a/packages/client/src/components/chart.vue b/packages/client/src/components/chart.vue
index fc7c4ff950..31e95404fa 100644
--- a/packages/client/src/components/chart.vue
+++ b/packages/client/src/components/chart.vue
@@ -316,7 +316,7 @@ const render = () => {
 		plugins: [{
 			id: 'vLine',
 			beforeDraw(chart, args, options) {
-				if (chart.tooltip._active && chart.tooltip._active.length) {
+				if (chart.tooltip?._active?.length) {
 					const activePoint = chart.tooltip._active[0];
 					const ctx = chart.ctx;
 					const x = activePoint.element.x;
-- 
cgit v1.2.3-freya

