mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-11-04 09:00:21 +00:00
fix: safely check nezhaWsData.servers before rendering
This commit is contained in:
1 parent
d302df895a
commit
964e53e33b
1 file changed
+1
-1
@@ -71,7 +71,7 @@ export function DashCommand() {
|
||||
<CommandInput placeholder={t("TypeCommand")} value={search} onValueChange={setSearch} />
|
||||
<CommandList>
|
||||
<CommandEmpty>{t("NoResults")}</CommandEmpty>
|
||||
{nezhaWsData.servers.length > 0 && (
|
||||
{nezhaWsData.servers && nezhaWsData.servers.length > 0 && (
|
||||
<>
|
||||
<CommandGroup heading={t("Servers")}>
|
||||
{nezhaWsData.servers.map((server) => (
|
||||
|
||||
Reference in new issue
Block a user