From 663a58c9f35d136c09dbadc0dccd5aed0f0b81f5 Mon Sep 17 00:00:00 2001 From: Jose Farias Date: Sat, 20 Apr 2024 12:28:10 -0600 Subject: [PATCH] Prevent double-renders when displaying turbo caches of time series charts --- app/javascript/controllers/time_series_chart_controller.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/controllers/time_series_chart_controller.js b/app/javascript/controllers/time_series_chart_controller.js index 87419861..b4de7d0b 100644 --- a/app/javascript/controllers/time_series_chart_controller.js +++ b/app/javascript/controllers/time_series_chart_controller.js @@ -23,6 +23,7 @@ export default class extends Controller { } disconnect() { + this.#teardown() document.removeEventListener("turbo:load", this.#reinstall) }