Commit 75ebfc6ba02 for woocommerce
commit 75ebfc6ba02574ed88ec9fc77afd4778a960c30f
Author: Luigi Teschio <gigitux@gmail.com>
Date: Wed Aug 12 16:20:19 2026 +0200
Fix duplicate keys for review loading placeholders (#67606)
* Fix duplicate keys for review loading placeholders
* Add changelog entry for review placeholder keys
diff --git a/plugins/woocommerce/changelog/fix-review-placeholder-keys b/plugins/woocommerce/changelog/fix-review-placeholder-keys
new file mode 100644
index 00000000000..f00f532c6a5
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-review-placeholder-keys
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Fix duplicate React keys for review loading placeholders.
diff --git a/plugins/woocommerce/client/blocks/assets/js/base/components/reviews/review-list/index.tsx b/plugins/woocommerce/client/blocks/assets/js/base/components/reviews/review-list/index.tsx
index 6e044604d49..5ce6d40b2d8 100644
--- a/plugins/woocommerce/client/blocks/assets/js/base/components/reviews/review-list/index.tsx
+++ b/plugins/woocommerce/client/blocks/assets/js/base/components/reviews/review-list/index.tsx
@@ -40,9 +40,9 @@ const ReviewList = ( {
{ reviews.length === 0 ? (
<ReviewListItem attributes={ attrs } />
) : (
- reviews.map( ( review ) => (
+ reviews.map( ( review, index ) => (
<ReviewListItem
- key={ review.id }
+ key={ review.id ?? `review-placeholder-${ index }` }
attributes={ attrs }
review={ review }
/>