bug fix + cleaner code/logic

This commit is contained in:
Daniel
2023-06-15 16:09:30 +03:30
parent 1b6d902c75
commit 4b9b1be80c
11 changed files with 156 additions and 229 deletions
+5 -3
View File
@@ -221,9 +221,11 @@ export default function Index() {
</div>
</div>
<div className="grid 2xl:grid-cols-3 xl:grid-cols-2 gap-5">
{links.map((e, i) => {
return <LinkCard key={i} link={e} count={i} />;
})}
{links
.filter((e) => e.collectionId === Number(router.query.id))
.map((e, i) => {
return <LinkCard key={i} link={e} count={i} />;
})}
</div>
</div>
</MainLayout>