Abrechnung Generierung

This commit is contained in:
Moritz Utcke
2025-08-04 17:23:04 -04:00
parent 3096f05f67
commit f56684a6e8
21 changed files with 459 additions and 115 deletions

View File

@@ -23,7 +23,7 @@ const totalPageCount = await prisma.aufnahme.count({
: {},
});
if (page < 1 || page > totalPageCount) {
if (page < 1 || page > totalPageCount && totalPageCount > 0) {
return Astro.redirect("/dashboard/objekte?p=1");
}