From 439900154b4cdaab89f3f929bfc34924d0ea4f0d Mon Sep 17 00:00:00 2001 From: Gabe Yuan Date: Wed, 21 Feb 2024 15:41:27 +0800 Subject: [PATCH] fix: dict voice not exist --- src/views/Selection/DictCont.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Selection/DictCont.js b/src/views/Selection/DictCont.js index 638f43d..f8b37d5 100644 --- a/src/views/Selection/DictCont.js +++ b/src/views/Selection/DictCont.js @@ -29,7 +29,7 @@ export default function DictCont({ dictResult }) { {dictResult.voice - .map(Object.entries) + ?.map(Object.entries) .map((item) => item[0]) .map(([key, val]) => `${phonicMap[key] || key} ${val}`) .join(" ")}