Skip to content

Commit

Permalink
Loosen the check to allow for inherit to be undefined.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwelcher committed Jan 30, 2025
1 parent 83796c2 commit 218a420
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/variations/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ const isAdvancedQueryLoop = ( props ) => {
const withAdvancedQueryControls = ( BlockEdit ) => ( props ) => {
// If the is the correct variation, add the custom controls.
if ( isAdvancedQueryLoop( props ) ) {
// If the inherit prop is false, add all the controls.
// If the inherit prop is false or undefined, add all the controls.
const { attributes } = props;
if ( attributes.query.inherit === false ) {
if ( ! attributes.query.inherit ) {
return (
<>
<BlockEdit { ...props } />
Expand Down

0 comments on commit 218a420

Please sign in to comment.