diff --git a/packages/block-editor/src/hooks/min-height.js b/packages/block-editor/src/hooks/min-height.js index c97faf985b2222..6e57e23eb94d90 100644 --- a/packages/block-editor/src/hooks/min-height.js +++ b/packages/block-editor/src/hooks/min-height.js @@ -67,7 +67,7 @@ export function resetMinHeight( { attributes = {}, setAttributes } ) { * @return {boolean} Whether min-height control is disabled. */ export function useIsMinHeightDisabled( { name: blockName } = {} ) { - const isDisabled = ! useSetting( 'dimensions.customMinHeight' ); + const isDisabled = ! useSetting( 'dimensions.minHeight' ); return ! hasMinHeightSupport( blockName ) || isDisabled; } diff --git a/packages/edit-site/src/components/sidebar/dimensions-panel.js b/packages/edit-site/src/components/sidebar/dimensions-panel.js index d299fee544280e..387cc379b6690a 100644 --- a/packages/edit-site/src/components/sidebar/dimensions-panel.js +++ b/packages/edit-site/src/components/sidebar/dimensions-panel.js @@ -34,7 +34,7 @@ function useHasHeight( { name, supports } ) { } function useHasMinHeight( { name, supports } ) { - const settings = useSetting( 'dimensions.customMinHeight', name ); + const settings = useSetting( 'dimensions.minHeight', name ); return settings && supports.includes( 'minHeight' ); }