From a0387b7ab3ec3debbda7f5d795b54c8df6762605 Mon Sep 17 00:00:00 2001 From: Tetsuaki Hamano Date: Fri, 18 Aug 2023 21:15:15 +0900 Subject: [PATCH 1/2] List View: Fix warning error when the gallery block has the same image URLs --- .../src/components/list-view/block-select-button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 930720fe56582..c14cf0403be41 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 @@ -194,7 +194,7 @@ function ListViewBlockSelectButton( { images.map( ( image, index ) => ( Date: Fri, 18 Aug 2023 23:43:52 +0900 Subject: [PATCH 2/2] 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 c14cf0403be41..33256791cb962 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 @@ -194,7 +194,7 @@ function ListViewBlockSelectButton( { images.map( ( image, index ) => (