Patterns: Unable to duplicate the pattern without categories #54729
Labels
[Feature] Patterns
A collection of blocks that can be synced (previously reusable blocks) or unsynced
[Type] Bug
An existing feature does not function as intended
Description
When trying to duplicate a pattern that does not have a category in the Site Editor, an error is displayed in the snack bar and the pattern is not duplicated.
After investigating, it seems that the cause is that the
categories
variable becomes undefined here:gutenberg/packages/edit-site/src/components/page-patterns/duplicate-menu-item.js
Lines 139 to 140 in b61dde2
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
52047a4c5bd2af427aafa1bbdb80b53c.mp4
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: