From 78ef256d8d88fa96ad8326b4395b0715ec2b9b19 Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Fri, 21 Sep 2018 10:15:14 +0100 Subject: [PATCH] Fixed Stats data storage. --- frontend/src/views/Stats.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/Stats.vue b/frontend/src/views/Stats.vue index 1bbae9d..1ae7974 100644 --- a/frontend/src/views/Stats.vue +++ b/frontend/src/views/Stats.vue @@ -8,9 +8,11 @@ import StatsView from "../components/StatsView"; export default { name: "stats", components: { StatsView }, - data() { - chartData: null; - options: null; + data: function() { + return { + chartData: null, + options: null + }; }, methods: { getAllTimeAverage: function() {