fix add room button visible on left room in space lobby

This commit is contained in:
Ajay Bura 2025-08-04 14:43:04 +05:30
parent 87c25dc5bf
commit 8f3ae69985
2 changed files with 4 additions and 6 deletions

View file

@ -474,7 +474,7 @@ export const SpaceItemCard = as<'div', SpaceItemCardProps>(
</>
)}
</Box>
{canEditChild && (
{space && canEditChild && (
<Box shrink="No" alignItems="Inherit" gap="200">
<AddRoomButton item={item} />
{item.parentId === undefined && <AddSpaceButton item={item} />}