Skip to content

Commit

Permalink
Keep the default as prefix to match the rest of coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd committed Feb 28, 2025
1 parent 1becd19 commit 27c04ea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { SelectControl } from '@wordpress/components';
import { __ } from '@wordpress/i18n';

const orderByOptionsDefault = [
const defaultOrderByOptions = [
{
label: __( 'Newest to oldest' ),
value: 'date/desc',
Expand All @@ -28,7 +28,7 @@ const orderByOptionsDefault = [
function OrderControl( {
order,
orderBy,
orderByOptions = orderByOptionsDefault,
orderByOptions = defaultOrderByOptions,
onChange,
} ) {
return (
Expand Down

0 comments on commit 27c04ea

Please sign in to comment.