Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix undefined index

dominik-zeglen03be08615d08
diff --git a/saleor/static/dashboard-next/productTypes/components/ProductTypeAttributes/ProductTypeAttributes.tsx b/saleor/static/dashboard-next/productTypes/components/ProductTypeAttributes/ProductTypeAttributes.tsx
index 2b7f73f2db..eaa5a8c754 100644
--- a/saleor/static/dashboard-next/productTypes/components/ProductTypeAttributes/ProductTypeAttributes.tsx
+++ b/saleor/static/dashboard-next/productTypes/components/ProductTypeAttributes/ProductTypeAttributes.tsx
@@ -122,7 +122,7 @@ const ProductTypeAttributes = withStyles(styles, {
: undefined
}
key={maybe(() => attribute.id)}
- index={attributeIndex}
+ index={attributeIndex || 0}
>
<TableCell padding="checkbox">
<Checkbox