From 29250f86948049b4470a011b5473d1912178fb72 Mon Sep 17 00:00:00 2001 From: zias Date: Wed, 11 Mar 2026 11:55:00 +0100 Subject: [PATCH] fix: resolve biome lint warnings in admin page (useless fragment, non-null assertion) --- apps/web/src/routes/admin/index.tsx | 30 ++++++++++++----------------- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/apps/web/src/routes/admin/index.tsx b/apps/web/src/routes/admin/index.tsx index efb3fb1..8dcf184 100644 --- a/apps/web/src/routes/admin/index.tsx +++ b/apps/web/src/routes/admin/index.tsx @@ -497,23 +497,17 @@ function AdminPage() { label="Artiesten" accent="amber" value={performerCount} - sub={ - <> - {stats?.byArtForm.slice(0, 3).map((item) => ( -
- - {item.artForm || "Onbekend"} - - - {item.count} - -
- ))} - - } + sub={stats?.byArtForm.slice(0, 3).map((item) => ( +
+ {item.artForm || "Onbekend"} + + {item.count} + +
+ ))} /> - setPage((p) => Math.min(pagination!.totalPages, p + 1)) + setPage((p) => Math.min(pagination?.totalPages ?? p, p + 1)) } disabled={page === pagination.totalPages} className="rounded-lg border border-white/15 bg-white/5 px-4 py-1.5 font-mono text-white/60 text-xs transition hover:border-white/30 hover:text-white disabled:opacity-30"