perf(SpeedGraph): Init values with null (#1422)

This commit is contained in:
Rémi Marseault 2023-12-19 07:57:07 +01:00 committed by GitHub
parent bec713cd82
commit 51d58cfc49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,8 +4,8 @@ import { ref } from 'vue'
export const useNavbarStore = defineStore(
'navbar',
() => {
const downloadData = ref<number[]>(new Array(15).fill(0))
const uploadData = ref<number[]>(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()