diff --git a/packages/block-library/src/query/edit/inspector-controls/index.js b/packages/block-library/src/query/edit/inspector-controls/index.js index 3128c3526926f9..28a6113620fb7c 100644 --- a/packages/block-library/src/query/edit/inspector-controls/index.js +++ b/packages/block-library/src/query/edit/inspector-controls/index.js @@ -211,7 +211,7 @@ export default function QueryInspectorControls( props ) { label={ __( 'Query type' ) } isBlock onChange={ ( value ) => { - setQuery( { inherit: !! value } ); + setQuery( { inherit: value === 'default' } ); } } help={ inherit @@ -222,14 +222,14 @@ export default function QueryInspectorControls( props ) { 'Display a list of posts or custom post types based on specific criteria.' ) } - value={ !! inherit } + value={ !! inherit ? 'default' : 'custom' } >