Skip to content

Commit

Permalink
Add attributes to TextControl value
Browse files Browse the repository at this point in the history
  • Loading branch information
michalczaplinski committed Aug 2, 2023
1 parent f8ee25e commit 39cb931
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-editor/src/hooks/custom-fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ export const withInspectorControl = createHigherOrderComponent(
label={ __( 'Custom field meta_key' ) }
value={
props.attributes?.connections
?.content?.value || ''
?.attributes?.content?.value ||
''
}
onChange={ ( nextValue ) => {
if ( nextValue === '' ) {
Expand Down

0 comments on commit 39cb931

Please sign in to comment.