fix(metrics/insights): output always erroring (close #1096)

This commit is contained in:
lowlighter
2022-06-24 22:15:25 -04:00
parent cd3d526301
commit 20fddf9324
2 changed files with 4 additions and 2 deletions

View File

@@ -96,6 +96,7 @@
this.pending = true
if (this.localstorage) {
this.metrics = JSON.parse(localStorage.getItem("local.metrics") ?? "null")
this.loaded = ["base", ...Object.keys(this.metrics?.rendered?.plugins ?? {})]
return
}
const {processing, ...data} = (await axios.get(`/about/query/${this.user}`)).data