We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30d4c5a commit 9403668Copy full SHA for 9403668
packages/edit-site/src/components/add-new-template/new-template.js
@@ -257,11 +257,7 @@ function useMissingTemplates(
257
// with the check if it has available specific item to create a
258
// template for.
259
if ( matchIndex > -1 ) {
260
- enhancedMissingDefaultTemplateTypes.splice(
261
- matchIndex,
262
- 1,
263
- menuItem
264
- );
+ enhancedMissingDefaultTemplateTypes[ matchIndex ] = menuItem;
265
} else {
266
enhancedMissingDefaultTemplateTypes.push( menuItem );
267
}
0 commit comments