fix: prevent null dereferences (#106)

This commit is contained in:
UUBulb authored and GitHub committed 2025-01-20 22:08:18 +08:00
1 parent 478ee8b7e6
commit 7bdbbe6eaf
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -133,7 +133,7 @@ export default function CronPage() {
const s = row.original
return (
<div className="max-w-16 whitespace-normal break-words">
<span>{s.servers.join(",")}</span>
<span>{(s.servers || []).join(",")}</span>
</div>
)
},
+1 -1
View File
@@ -82,7 +82,7 @@ export default function NotificationGroupPage() {
const s = row.original
return (
<div className="max-w-48 whitespace-normal break-words">
<span>{s.notifications.join(",")}</span>
<span>{(s.notifications || []).join(",")}</span>
</div>
)
},
+1 -1
View File
@@ -82,7 +82,7 @@ export default function ServerGroupPage() {
const s = row.original
return (
<div className="max-w-48 whitespace-normal break-words">
<span>{s.servers.join(",")}</span>
<span>{(s.servers || []).join(",")}</span>
</div>
)
},