Skip to content

A live bird collage card for your Home Assistant dashboard.

fix: minichart only worked first time pt2

frederik141fb6765385
diff --git a/scripts/todays_detections.php b/scripts/todays_detections.php
index 0045fbe3..efb3ce58 100644
--- a/scripts/todays_detections.php
+++ b/scripts/todays_detections.php
@@ -777,6 +777,7 @@ window.addEventListener('scroll', function() {
// Loop through all chart elements and remove them
charts.forEach(function(chart) {
chart.parentNode.removeChild(chart);
+ window.chartWindow = undefined;
});
});