2
0

🐛 Fix table list when empty always show "add" button

Closes #544
This commit is contained in:
Baptiste Arnaud
2023-07-24 17:54:08 +02:00
parent 0c923b70a6
commit b171b39606

View File

@@ -161,7 +161,7 @@ export const TableList = <T,>({
</Flex>
</Box>
))}
{!isOrdered && (
{(!isOrdered || items.length === 0) && (
<Button
leftIcon={<PlusIcon />}
onClick={createItem}