From 6c31074f3be54eefb79648e7f3da51d0f129fc43 Mon Sep 17 00:00:00 2001 From: Luc Claustres Date: Wed, 28 Aug 2024 19:19:55 +0200 Subject: [PATCH] fix: restore zoom feature on time series --- src/components/TimeSeries.vue | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/components/TimeSeries.vue b/src/components/TimeSeries.vue index 951464e7..989780a8 100644 --- a/src/components/TimeSeries.vue +++ b/src/components/TimeSeries.vue @@ -163,8 +163,6 @@ function onZoomEnd ({ chart, start, end }) { } function onRestoreZoom () { isZoomed.value = (chartRef.value ? chartRef.value.restorePreviousZoom() : false) - const zoom = (chartRef.value ? chartRef.value.getZoom() : null) - if (zoom) Time.patchRange(zoom) } function onResized (size) { height.value = size.height