From a5eb20d979aa1c0064705eaa8b63acfd8949d200 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sun, 24 Dec 2023 07:37:18 +0800 Subject: [PATCH] fix undefined error --- src/stores/useGovStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/useGovStore.ts b/src/stores/useGovStore.ts index c9a57a56..587839be 100644 --- a/src/stores/useGovStore.ts +++ b/src/stores/useGovStore.ts @@ -41,7 +41,7 @@ export const useGovStore = defineStore('govStore', { //filter spam proposals if(proposals?.proposals) { proposals.proposals = proposals.proposals.filter((item) => { - const title = item.content.title || item.title || "" + const title = item.content?.title || item.title || "" return title.toLowerCase().indexOf("airdrop")===-1 }); }