Skip to content

Commit

Permalink
frontend: display unsorted cards properly
Browse files Browse the repository at this point in the history
  • Loading branch information
NickSavage committed Dec 7, 2024
1 parent d01064f commit 9b5173f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion zettelkasten-front/src/pages/DashboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ export function DashboardPage() {
<div className="flex-shrink-0 md:w-4/12 border-l p-4">
<div>
<span className="font-bold">Unsorted Cards</span>
{partialCards && <CardList cards={recentCards} />}
{partialCards && (
<CardList
cards={partialCards
.filter((card) => card.card_id === "")
.slice(0, 10)}
/>
)}
</div>
<hr />
</div>
Expand Down

0 comments on commit 9b5173f

Please sign in to comment.