Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Query Loop: Fix query type indicator
  • Loading branch information
t-hamano committed Oct 4, 2024
commit 3cf499471d0211891c143b9d7ca95159c1fa3070
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