From 964e53e33b8d23e29d510e366a0e5612b314c13b Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Mon, 27 Jan 2025 23:57:36 +0800 Subject: [PATCH] fix: safely check nezhaWsData.servers before rendering --- src/components/DashCommand.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DashCommand.tsx b/src/components/DashCommand.tsx index a4f2be4..f4704ec 100644 --- a/src/components/DashCommand.tsx +++ b/src/components/DashCommand.tsx @@ -71,7 +71,7 @@ export function DashCommand() { {t("NoResults")} - {nezhaWsData.servers.length > 0 && ( + {nezhaWsData.servers && nezhaWsData.servers.length > 0 && ( <> {nezhaWsData.servers.map((server) => (