From 040e3040f79aefb83e836ac535e684353d777828 Mon Sep 17 00:00:00 2001 From: an-lee Date: Thu, 12 Sep 2024 17:14:36 +0800 Subject: [PATCH] hotfix --- enjoy/src/renderer/context/dict-provider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enjoy/src/renderer/context/dict-provider.tsx b/enjoy/src/renderer/context/dict-provider.tsx index 7cfc5b67..8fc0f9fb 100644 --- a/enjoy/src/renderer/context/dict-provider.tsx +++ b/enjoy/src/renderer/context/dict-provider.tsx @@ -66,7 +66,7 @@ export const DictProvider = ({ children }: { children: React.ReactNode }) => { text: dict.title, value: dict.name, })); - const _mdicts = settings.mdicts.map((mdict) => ({ + const _mdicts = (settings.mdicts || []).map((mdict) => ({ type: "mdict" as DictType, text: mdict.title, value: mdict.hash,