diff --git a/packages/editor/src/components/block-bindings/fields-list.js b/packages/editor/src/components/block-bindings/fields-list.js index ba28797940b19..f681467126f5c 100644 --- a/packages/editor/src/components/block-bindings/fields-list.js +++ b/packages/editor/src/components/block-bindings/fields-list.js @@ -17,9 +17,7 @@ export default function BlockBindingsFieldsList( props ) { // TODO: Try to abstract this function to be reused across all the sources. function selectItem( item ) { - // Modify the attribute we are binding. - // TODO: Not sure if we should do this. We might need to process the bindings attribute somehow in the editor to modify the content with context. - // TODO: Get the type from the block attribute definition and modify/validate the value returned by the source if needed. + // Modify the attribute binded. const newAttributes = {}; newAttributes[ currentAttribute ] = item.value; setAttributes( newAttributes ); diff --git a/packages/editor/src/hooks/block-bindings-sources/post-meta.js b/packages/editor/src/hooks/block-bindings-sources/post-meta.js index c01ea97b1604b..a02c71021e93a 100644 --- a/packages/editor/src/hooks/block-bindings-sources/post-meta.js +++ b/packages/editor/src/hooks/block-bindings-sources/post-meta.js @@ -39,7 +39,6 @@ if ( window.__experimentalBlockBindings ) { [ context.postId, context.postType ] ); - // TODO: Explore how to get the list of available fields depending on the template. if ( ! data || ! data.meta ) { return ; }