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

This commit is contained in:
lowlighter committed 2022-06-24 22:15:25 -04:00
1 parent cd3d526301
commit 20fddf9324
2 files changed
+4 -2

No files matched your search

+1
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