mirror of
https://github.com/FranP-code/Reflecto.git
synced 2025-10-13 00:43:31 +00:00
feat: update item count display in SpacesGrid to reflect shape items in snapshot
This commit is contained in:
@@ -215,7 +215,14 @@ export function SpacesGrid() {
|
|||||||
</CardContent>
|
</CardContent>
|
||||||
|
|
||||||
<CardFooter className="flex items-center justify-between pt-0 text-muted-foreground text-sm">
|
<CardFooter className="flex items-center justify-between pt-0 text-muted-foreground text-sm">
|
||||||
<span>{snapshot?.itemCount} items</span>
|
<span>
|
||||||
|
{
|
||||||
|
Object.keys(snapshot?.store || {}).filter((key) =>
|
||||||
|
key.startsWith("shape:")
|
||||||
|
).length
|
||||||
|
}{" "}
|
||||||
|
items
|
||||||
|
</span>
|
||||||
<span>Edited {space.lastEdited}</span>
|
<span>Edited {space.lastEdited}</span>
|
||||||
</CardFooter>
|
</CardFooter>
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
Reference in New Issue
Block a user