refactor(FE): Hide delete button if only one item remains in table

This commit is contained in:
rstubryan
2026-02-13 10:37:12 +07:00
parent e9da5210ad
commit ec3a0367dd
@@ -49,6 +49,7 @@ const SalesOrderProductTable = ({
>
<Icon icon='heroicons:pencil' width={20} height={20} />
</Button>
{data.length > 1 && (
<Button
type='button'
variant='ghost'
@@ -60,6 +61,7 @@ const SalesOrderProductTable = ({
>
<Icon icon='heroicons:trash' width={20} height={20} />
</Button>
)}
</div>
)}
</div>