Skip to content

Commit

Permalink
Template Parts: Set attributes 'area' as useSelect dependency (#52330)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Jul 6, 2023
1 parent cea0afd commit e72a740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/template-part/edit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default function TemplatePartEdit( {
area: _area,
};
},
[ templatePartId, clientId ]
[ templatePartId, attributes.area, clientId ]
);
const { templateParts } = useAlternativeTemplateParts(
area,
Expand Down

1 comment on commit e72a740

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in e72a740.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5473425559
📝 Reported issues:

Please sign in to comment.