From a72dc710fa690823609fddff430c765447be1528 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Mon, 6 Jan 2025 16:02:56 +0400 Subject: [PATCH] Document Outline: Use block client ID as unique 'key' --- packages/editor/src/components/document-outline/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/editor/src/components/document-outline/index.js b/packages/editor/src/components/document-outline/index.js index 89f853798296ae..6c498ccc799909 100644 --- a/packages/editor/src/components/document-outline/index.js +++ b/packages/editor/src/components/document-outline/index.js @@ -168,7 +168,7 @@ export default function DocumentOutline( { { title } ) } - { headings.map( ( item, index ) => { + { headings.map( ( item ) => { // Headings remain the same, go up by one, or down by any amount. // Otherwise there are missing levels. const isIncorrectLevel = @@ -184,7 +184,7 @@ export default function DocumentOutline( { return (