Skip to content

Commit

Permalink
Lodash: Refactor away from _.kebabCase() in add page modal (WordPress…
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla authored and sethrubenstein committed Jul 13, 2023
1 parent ffd86f4 commit ccdb85d
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 ccdb85d

Please sign in to comment.