Skip to content

Commit

Permalink
Lodash: Refactor away from _.kebabCase() in add page modal (#51911)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla authored Jun 28, 2023
1 parent 553d0f6 commit 42cd04a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/edit-site/src/components/add-new-page/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/**
* External dependencies
*/
import { kebabCase } from 'lodash';

/**
* WordPress dependencies
*/
Expand Down Expand Up @@ -41,7 +36,7 @@ export default function AddNewPageModal( { onSave, onClose } ) {
{
status: 'draft',
title,
slug: kebabCase( title || __( 'No title' ) ),
slug: title || __( 'No title' ),
},
{ throwOnError: true }
);
Expand Down

0 comments on commit 42cd04a

Please sign in to comment.