Only render the last components if there is anything to show, otherwise just show nothing
This commit is contained in:
@@ -25,7 +25,7 @@ const lastProjects = await getLastProjects(projects.amount);
|
||||
const size = calculateSizeClasses(projects.amount, lastProjects.length);
|
||||
---
|
||||
|
||||
{ settings.project.enabled && (
|
||||
{ (settings.project.enabled && lastProjects.length > 0) && (
|
||||
<div
|
||||
id={`lastprojects-${projects.id}`}
|
||||
class="flex lg:flex-col flex-col py-12 px-12 lg:container mx-auto gap-y-8 gap-x-18 w-full"
|
||||
|
||||
Reference in New Issue
Block a user