Command Center: Some templates don't appear in results. #51657
Labels
[Package] Commands
/packages/commands
[Status] In Progress
Tracking issues with work in progress
[Type] Enhancement
A suggestion for improvement.
Description
When testing the command center feature in the Site Editor against WooCommerce templates I noticed that they weren't appearing in the returned results.
It looks as if the template list is sliced and the resulting list of 10 is then used to filter against the input. If the expected template isn't in this ten then it looks like it won't be returned as a match.
Additionally if you save a customized version of a template e.g.
Single product
then it does get returned in the results. I'm guessing because databased entries feature earlier in the list of templates and don't get cut off after theslice
method is used.Removing the
.slice
onrecords
does return the expected results based on the available templates on the site.Step-by-step reproduction instructions
Single product
)Screenshots, screen recording, code snippet
No response
Environment info
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: