From 92c940171a63f6dd0d561e63ce1507ad3aadb98e Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Mon, 21 Aug 2023 21:05:52 +0900 Subject: [PATCH] List View: Fix warning error when the gallery block has the same image URLs (#53809) * List View: Fix warning error when the gallery block has the same image URLs * Use clientId instead of index --- .../src/components/list-view/block-select-button.js | 2 +- .../src/components/list-view/use-list-view-images.js | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/block-editor/src/components/list-view/block-select-button.js b/packages/block-editor/src/components/list-view/block-select-button.js index e558b951f54595..faf9d299bd9352 100644 --- a/packages/block-editor/src/components/list-view/block-select-button.js +++ b/packages/block-editor/src/components/list-view/block-select-button.js @@ -246,7 +246,7 @@ function ListViewBlockSelectButton( { images.map( ( image, index ) => (