Skip to content

Commit

Permalink
Add meetsConditionalLogic as a hook dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Jory Hogeveen <[email protected]>
  • Loading branch information
JoryHogeveen authored Oct 15, 2024
1 parent 1b2ddae commit d8a0abe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/js/dfv/src/components/field-wrapper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export const FieldWrapper = ( props ) => {
return () => {
blockEditor.unlockPostSaving( `pods-field-${ name }` );
};
}, [ validationMessages ] );
}, [ validationMessages, meetsConditionalLogic ] );

// Don't render a field that hasn't had its dependencies met.
if ( ! meetsConditionalLogic ) {
Expand Down

0 comments on commit d8a0abe

Please sign in to comment.