chore: update seed script

This commit is contained in:
MTG2000
2022-08-07 18:17:56 +03:00
parent 28410541ed
commit 6718d6fc7b
6 changed files with 320 additions and 105 deletions

View File

@@ -26,9 +26,10 @@ export default function ProjectsSection() {
<ProjectsRow title="Recently added"
projects={data.newProjects} />
<ProjectsRow title={shockTheWebCategory?.title}
link={`/apps/category/${shockTheWebCategory?.id}`}
projects={shockTheWebCategory?.project!} />
{shockTheWebCategory &&
<ProjectsRow title={shockTheWebCategory.title}
link={`/apps/category/${shockTheWebCategory.id}`}
projects={shockTheWebCategory.project!} />}
{restCategories.map(({ id, title, project, }) => {
if (project)
return <ProjectsRow