bugfix: chart rendering disabled when the chart is hidden

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej committed 2021-02-21 22:44:27 +01:00
1 parent e872c3e975
commit cb6706415e
1 file changed
+2
+2
View File
@@ -224,6 +224,7 @@ export default {
...mapState({
intervalChartUpdate: state => state.gui.tempchart.intervalChartUpdate,
intervalDatasetUpdate: state => state.gui.tempchart.intervalDatasetUpdate,
boolTempchart: state => state.gui.dashboard.boolTempchart,
}),
maxHistory: {
get() {
@@ -270,6 +271,7 @@ export default {
this.timerChart = setInterval(() => {
if (
this.chart &&
this.boolTempchart &&
document.visibilityState === "visible" &&
this.$route.path === "/"
) {