fix: crash

This commit is contained in:
dvelo 2025-01-15 21:17:41 -06:00 committed by GitHub
commit 9b6c1f07f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -48,7 +48,9 @@ export default function LayoutPart({
</BreadcrumbList>
</Breadcrumb>
</div>
{!loading && incidents !== null && (
{!loading &&
incidents !== null &&
(incidents as Array<any>).length > 0 && (
<div className="justify-self-center items-center text-center pb-2 pt-2 rounded border my-1 px-2 bg-red-500 text-white">
<strong className="text-sm">
{