Fix JS linting errors
adjust whitespaces and parentheses.
This commit is contained in:
parent
9adc8a733f
commit
b9842b6f99
|
@ -307,7 +307,7 @@ const formatProps = memoize(
|
|||
[
|
||||
isError,
|
||||
isRequesting,
|
||||
( new URLSearchParams( tableQuery ) ).toString(),
|
||||
new URLSearchParams( tableQuery ).toString(),
|
||||
get( revenueData, [ 'totalResults' ], 0 ),
|
||||
get( revenueData, [ 'data', 'intervals' ], EMPTY_ARRAY ).length,
|
||||
].join( ':' )
|
||||
|
|
|
@ -19,7 +19,7 @@ const DefaultDate = ( { value, onChange } ) => {
|
|||
onChange( {
|
||||
target: {
|
||||
name: 'woocommerce_default_date_range',
|
||||
value: ( new URLSearchParams( query ) ).toString(),
|
||||
value: new URLSearchParams( query ).toString(),
|
||||
},
|
||||
} );
|
||||
};
|
||||
|
|
|
@ -14,9 +14,7 @@ import './style.scss';
|
|||
|
||||
type QueryParams = EmbeddedBodyProps;
|
||||
|
||||
function isWPPage(
|
||||
params: URLSearchParams
|
||||
): Boolean {
|
||||
function isWPPage( params: URLSearchParams ): boolean {
|
||||
return params.get( 'page' ) !== null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue