Skip to content

Commit

Permalink
Remove some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
SantosGuillamot authored and michalczaplinski committed Jan 11, 2024
1 parent 3eb5084 commit 934715b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions packages/editor/src/components/block-bindings/fields-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <BlockEdit key="edit" { ...props } />;
}
Expand Down

0 comments on commit 934715b

Please sign in to comment.