Fix sidebar note count bug

This commit is contained in:
2026-01-23 12:33:07 +00:00
parent 4a485255b0
commit 3003066a5a

View File

@@ -72,7 +72,7 @@ function AppSidebar() {
<div className="flex items-center gap-3 rounded-md px-2 py-1.5"> <div className="flex items-center gap-3 rounded-md px-2 py-1.5">
<div className="flex flex-col leading-tight gap-2"> <div className="flex flex-col leading-tight gap-2">
<span className="text-xs text-muted-foreground"> <span className="text-xs text-muted-foreground">
{notes.length} note{notes.length !== 1 && "s"} {notes.size || 0} note{notes.size !== 1 && "s"}
</span> </span>
<div className="flex flex-row gap-2"> <div className="flex flex-row gap-2">
<div className="flex h-4 w-4 items-center justify-center rounded-full bg-foreground"> <div className="flex h-4 w-4 items-center justify-center rounded-full bg-foreground">