fix one more linting

This commit is contained in:
Ron Rennick 2023-11-30 17:33:02 -04:00
parent 35fdf3286f
commit b01a80f06c
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ async function processDirectory(
const categoryFolder = path.basename( subDirectory );
const categoryTitle = categoryFolder
.split( '-' )
.map( ( slugPart) => slugPart.charAt( 0 ).toUpperCase() + slugPart.slice( 1 ) )
.map( ( slugPart ) => slugPart.charAt( 0 ).toUpperCase() + slugPart.slice( 1 ) )
.join( ' ' );
category.category_slug = category.category_slug ?? categoryFolder;
category.category_title = category.category_title ?? categoryTitle;