Abrechnung Generierung
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user