diff --git a/app/src/components/pages/collectionsPage/collectionsPage.tsx b/app/src/components/pages/collectionsPage/collectionsPage.tsx index 923de559..210e67d1 100644 --- a/app/src/components/pages/collectionsPage/collectionsPage.tsx +++ b/app/src/components/pages/collectionsPage/collectionsPage.tsx @@ -23,8 +23,10 @@ export const CollectionsPage = ({ data }) => { const searchParams = useSearchParams(); const pathname = usePathname(); const [isLoaded, setIsLoaded] = useState(false); + // console.log("typeof data.collection is: ", typeof data.collection) + // console.log(" data.collection.length? ", typeof data.collection?.length) - const collections = data.collection; // typeof data.collection === "object" ? [data.collection] : data.collection // this breaks empty search + const collections = data.collection; //typeof data.collection === "array" ? data.collection : [data.collection] //: data.collection // this breaks empty search const headingRef = useRef(null); // pagination