Prevent from mapping over undefined (#1457)
This commit is contained in:
parent
d03bf9c791
commit
6ddb537445
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ const AssignVariantDialog: React.FC<AssignVariantDialogProps> = props => {
|
||||||
<ResponsiveTable key="table">
|
<ResponsiveTable key="table">
|
||||||
<TableBody>
|
<TableBody>
|
||||||
{renderCollection(
|
{renderCollection(
|
||||||
products,
|
productChoices,
|
||||||
(product, productIndex) => (
|
(product, productIndex) => (
|
||||||
<React.Fragment key={product ? product.id : "skeleton"}>
|
<React.Fragment key={product ? product.id : "skeleton"}>
|
||||||
<TableRow>
|
<TableRow>
|
||||||
|
|
Loading…
Reference in a new issue