diff --git a/src/storybook/__snapshots__/Stories.test.ts.snap b/src/storybook/__snapshots__/Stories.test.ts.snap index 86cd9bc57..ed195b535 100644 --- a/src/storybook/__snapshots__/Stories.test.ts.snap +++ b/src/storybook/__snapshots__/Stories.test.ts.snap @@ -38951,10 +38951,85 @@ exports[`Storyshots Views / Attributes / Attribute details loading 1`] = ` class="MuiTableRow-root-id" > - No values found + + + + + ‌ + + + + + ‌ + + + + @@ -40886,10 +40961,84 @@ exports[`Storyshots Views / Attributes / Attribute details no values 1`] = ` class="MuiTableRow-root-id" > - No values found + + + + + ‌ + + + + + ‌ + + + + @@ -60837,6 +60986,42 @@ exports[`Storyshots Views / Collections / Collection detailsCollection details l + + + + + + + + - - No products found + + + + + + + + +
+
+ +
+
+ + ‌ + +
+
+ + + + ‌ + + + + + ‌ + + + + @@ -75491,9 +75779,43 @@ exports[`Storyshots Views / Customers / Customer details loading 1`] = ` > - No orders found + + ‌ + + + + + ‌ + + + + + ‌ + + + + + ‌ + @@ -89037,6 +89359,42 @@ exports[`Storyshots Views / Discounts / Sale details loading 1`] = ` + + + + + + + + - No categories found + + + + + + + + + + ‌ + + + + + ‌ + + + + @@ -230098,10 +230530,95 @@ exports[`Storyshots Views / Shipping / Shipping rate loading 1`] = ` class="MuiTableRow-root-id" > - No Products + + + + + + + + +
+
+ +
+
+ + ‌ + +
+
+ + + @@ -248267,11 +248784,12 @@ exports[`Storyshots Views / Warehouses / Warehouse details loading 1`] = `
-
- This warehouse has no shipping zones assigned. -
+ ‌ +
diff --git a/src/warehouses/components/WarehouseList/WarehouseList.tsx b/src/warehouses/components/WarehouseList/WarehouseList.tsx index 2b2eeb8f1..d96da07d6 100644 --- a/src/warehouses/components/WarehouseList/WarehouseList.tsx +++ b/src/warehouses/components/WarehouseList/WarehouseList.tsx @@ -132,7 +132,7 @@ const WarehouseList: React.FC = props => { className={classes.tableRow} hover={!!warehouse} onClick={warehouse ? onRowClick(warehouse.id) : undefined} - key={warehouse ? warehouse.id : "n/a"} + key={warehouse ? warehouse.id : "skeleton"} data-test="warehouseEntry" data-testid={warehouse?.name.toLowerCase().replace(" ", "")} > @@ -140,9 +140,13 @@ const WarehouseList: React.FC = props => { {maybe(() => warehouse.name, )} - {mapEdgesToItems(warehouse?.shippingZones) - .map(({ name }) => name) - .join(", ") || "-"} + {disabled ? ( + + ) : ( + mapEdgesToItems(warehouse?.shippingZones) + ?.map(({ name }) => name) + .join(", ") || "-" + )}