diff --git a/core-blocks/archives/edit.js b/core-blocks/archives/edit.js index 262d7532bd083f..c39c81170adb60 100644 --- a/core-blocks/archives/edit.js +++ b/core-blocks/archives/edit.js @@ -19,29 +19,25 @@ import { BlockControls, } from '@wordpress/editor'; -export default function ArchivesEdit( { attributes, isSelected, setAttributes } ) { +export default function ArchivesEdit( { attributes, setAttributes } ) { const { align, showPostCounts, displayAsDropdown } = attributes; - const inspectorControls = isSelected && ( - - - setAttributes( { showPostCounts: ! showPostCounts } ) } - /> - setAttributes( { displayAsDropdown: ! displayAsDropdown } ) } - /> - - - ); - return ( - { inspectorControls } + + + setAttributes( { showPostCounts: ! showPostCounts } ) } + /> + setAttributes( { displayAsDropdown: ! displayAsDropdown } ) } + /> + +