diff --git a/src/components/charts/TempChart.vue b/src/components/charts/TempChart.vue index 4f92a1b7..e66517b5 100644 --- a/src/components/charts/TempChart.vue +++ b/src/components/charts/TempChart.vue @@ -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 === "/" ) {