fix linting
This commit is contained in:
parent
cf2cd16689
commit
b2cf209891
|
@ -54,8 +54,10 @@ async function processDirectory(
|
||||||
const categoryFolder = path.basename( subDirectory );
|
const categoryFolder = path.basename( subDirectory );
|
||||||
const categoryTitle = categoryFolder
|
const categoryTitle = categoryFolder
|
||||||
.split( '-' )
|
.split( '-' )
|
||||||
.map( ( slugPart ) =>
|
.map(
|
||||||
slugPart.charAt( 0 ).toUpperCase() + slugPart.slice( 1 ) )
|
( slugPart ) =>
|
||||||
|
slugPart.charAt( 0 ).toUpperCase() + slugPart.slice( 1 )
|
||||||
|
)
|
||||||
.join( ' ' );
|
.join( ' ' );
|
||||||
category.category_slug = category.category_slug ?? categoryFolder;
|
category.category_slug = category.category_slug ?? categoryFolder;
|
||||||
category.category_title = category.category_title ?? categoryTitle;
|
category.category_title = category.category_title ?? categoryTitle;
|
||||||
|
|
Loading…
Reference in New Issue