Commit 5d71df8
committed
Handle null sales channel entries in product list and detail views
Filter out null entries from sales_channels arrays before rendering.
When a sales channel is deleted without cleaning up the join table,
the API returns null entries that crash the Admin UI with TypeError.1 parent cec755c commit 5d71df8
File tree
3 files changed
+6
-3
lines changed- .changeset
- packages/admin/dashboard/src
- components/table/table-cells/product/sales-channels-cell
- routes/products/product-detail/components/product-sales-channel-section
3 files changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments