Skip to content

Commit

Permalink
Query Loop: Fix query type indicator (#65877)
Browse files Browse the repository at this point in the history
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: ciampo <[email protected]>
  • Loading branch information
3 people authored Oct 4, 2024
1 parent 597c7d9 commit 9b1ee51
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export default function QueryInspectorControls( props ) {
label={ __( 'Query type' ) }
isBlock
onChange={ ( value ) => {
setQuery( { inherit: !! value } );
setQuery( { inherit: value === 'default' } );
} }
help={
inherit
Expand All @@ -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' }
>
<ToggleGroupControlOption
value
value="default"
label={ __( 'Default' ) }
/>
<ToggleGroupControlOption
value={ false }
value="custom"
label={ __( 'Custom' ) }
/>
</ToggleGroupControl>
Expand Down

0 comments on commit 9b1ee51

Please sign in to comment.