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 (