From 4c128c920cbbea34629c362e80d354bbdcd6c330 Mon Sep 17 00:00:00 2001 From: sadnub Date: Sun, 21 Feb 2021 19:00:43 -0500 Subject: [PATCH] make check results chart more responsive with large amounts of data --- src/components/graphs/CheckGraph.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/graphs/CheckGraph.vue b/src/components/graphs/CheckGraph.vue index 6019692..f3167bc 100644 --- a/src/components/graphs/CheckGraph.vue +++ b/src/components/graphs/CheckGraph.vue @@ -125,7 +125,7 @@ export default { this.$axios .patch(`/checks/history/${this.check.id}/`, { timeFilter: this.timeFilter }) .then(r => { - this.history = r.data; + this.history = Object.freeze(r.data); // save copy of data to reference results in chart tooltip if ( @@ -133,7 +133,7 @@ export default { this.check.check_type !== "memory" || this.check.check_type !== "diskspace" ) { - this.results = r.data; + this.results = Object.freeze(r.data); } this.$q.loading.hide();