Appease linter
This commit is contained in:
parent
a23fbbbd63
commit
952e4bd7fe
|
@ -8,11 +8,7 @@ import { useQuery } from '@woocommerce/navigation';
|
|||
* Internal dependencies
|
||||
*/
|
||||
import './content.scss';
|
||||
import {
|
||||
Product,
|
||||
ProductType,
|
||||
SearchResultType,
|
||||
} from '../product-list/types';
|
||||
import { Product, ProductType, SearchResultType } from '../product-list/types';
|
||||
import { getAdminSetting } from '../../../utils/admin-settings';
|
||||
import Discover from '../discover/discover';
|
||||
import Products from '../products/products';
|
||||
|
|
|
@ -63,7 +63,10 @@ async function apiFetchWithCache( params: object ): Promise< object > {
|
|||
}
|
||||
|
||||
// Wrapper around fetch() that caches results in memory
|
||||
async function fetchJsonWithCache( url: string, abortSignal?: AbortSignal ): Promise< object > {
|
||||
async function fetchJsonWithCache(
|
||||
url: string,
|
||||
abortSignal?: AbortSignal
|
||||
): Promise< object > {
|
||||
// Attempt to fetch from cache:
|
||||
if ( fetchCache.get( url ) ) {
|
||||
return new Promise( ( resolve ) => {
|
||||
|
|
Loading…
Reference in New Issue