PluginProbe
Extendify / 3.2.1
Extendify v3.2.1
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
← All changes | src/Library/hooks/useSiteImages.js +3 -1 3.1.33.2.1 View file →
@@ -1,5 +1,6 @@
1 1 import { getSiteImages } from '@library/api/WPApi';
2 +import { siteImageUrls } from '@shared/lib/site-images';
2 3 import useSWRImmutable from 'swr/immutable';
3 4
4 5 export const useSiteImages = () => {
5 6 const { data, error, isLoading } = useSWRImmutable(
@@ -5,6 +6,7 @@
5 6 const { data, error, isLoading } = useSWRImmutable(
6 7 'library-site-images',
7 8 getSiteImages,
8 9 );
9 - return { siteImages: data?.siteImages ?? [], error, isLoading };
10 + // Patterns here carry no type, so the banner picks are part of one pool.
11 + return { siteImages: siteImageUrls(data?.siteImages), error, isLoading };
10 12 };