Skip to content

Commit

Permalink
testing something
Browse files Browse the repository at this point in the history
  • Loading branch information
avertrees committed Dec 3, 2024
1 parent 70f92a5 commit ba7a2a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/components/pages/collectionsPage/collectionsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<HTMLHeadingElement>(null);

// pagination
Expand Down

0 comments on commit ba7a2a8

Please sign in to comment.