From 7f8503edd2d2048ab72e428597c763aab34363ee Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sun, 28 Apr 2024 09:25:03 +0800 Subject: [PATCH] improve tolerance of config --- src/stores/useDashboard.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/useDashboard.ts b/src/stores/useDashboard.ts index a1e4bc95..a8410107 100644 --- a/src/stores/useDashboard.ts +++ b/src/stores/useDashboard.ts @@ -290,7 +290,7 @@ export const useDashboard = defineStore('dashboard', { const keys = Object.keys(this.chains) // load all blockchain // Object.keys(this.favoriteMap) //only load favorite once it has too many chains keys.forEach(k => { - if(this.chains[k]) this.chains[k].assets.forEach(a => { + if(Array.isArray(this.chains[k]?.assets)) this.chains[k].assets.forEach(a => { if(a.coingecko_id !== undefined && a.coingecko_id.length > 0) { coinIds.push(a.coingecko_id) a.denom_units.forEach(u => {