Fix style of product type attributes empty table

This commit is contained in:
Dawid Tarasiuk 2020-10-02 12:36:41 +02:00
parent 769f30e135
commit 5adcc77e14

View file

@ -125,6 +125,7 @@ const ProductTypeAttributes: React.FC<ProductTypeAttributesProps> = props => {
<col className={classes.colSlug} />
<col className={classes.colAction} />
</colgroup>
{attributes?.length > 0 && (
<TableHead
colSpan={numberOfColumns}
disabled={disabled}
@ -145,6 +146,7 @@ const ProductTypeAttributes: React.FC<ProductTypeAttributesProps> = props => {
</TableCell>
<TableCell />
</TableHead>
)}
<SortableTableBody onSortEnd={onAttributeReorder}>
{renderCollection(
attributes,