From 51d58cfc4962f3c4fcc71d9e65a09863f695e025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Marseault?= <22910497+Larsluph@users.noreply.github.com> Date: Tue, 19 Dec 2023 07:57:07 +0100 Subject: [PATCH] perf(SpeedGraph): Init values with null (#1422) --- src/stores/navbar.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stores/navbar.ts b/src/stores/navbar.ts index 243ab3e6..fa2a0906 100644 --- a/src/stores/navbar.ts +++ b/src/stores/navbar.ts @@ -4,8 +4,8 @@ import { ref } from 'vue' export const useNavbarStore = defineStore( 'navbar', () => { - const downloadData = ref(new Array(15).fill(0)) - const uploadData = ref(new Array(15).fill(0)) + const downloadData = ref<(number | null)[]>(new Array(15).fill(null)) + const uploadData = ref<(number | null)[]>(new Array(15).fill(null)) function pushDownloadData(data: number) { downloadData.value.shift()