bug fixed

This commit is contained in:
daniel31x13
2024-08-16 12:35:04 -04:00
parent 0e47ad9920
commit 5d26617251
3 changed files with 22 additions and 40 deletions
+1 -11
View File
@@ -1,12 +1,4 @@
import { CollectionIncludingMembersAndLinkCount } from "@/types/global";
import { Dispatch, SetStateAction } from "react";
const getPublicCollectionData = async (
collectionId: number,
setData: Dispatch<
SetStateAction<CollectionIncludingMembersAndLinkCount | undefined>
>
) => {
const getPublicCollectionData = async (collectionId: number) => {
const res = await fetch("/api/v1/public/collections/" + collectionId);
if (res.status === 400)
@@ -14,8 +6,6 @@ const getPublicCollectionData = async (
const data = await res.json();
setData(data.response);
return data;
};