Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

bug fixed

daniel31x137bdef522c166
diff --git a/components/LinkCard.tsx b/components/LinkCard.tsx
index d7c28ebc..55b5d1be 100644
--- a/components/LinkCard.tsx
+++ b/components/LinkCard.tsx
@@ -110,7 +110,7 @@ export default function LinkCard({ link, count, className }: Props) {
if (response.ok) {
toast.success(`Link is being archived...`);
getLink(link.id as number);
- } else toast.error(data);
+ } else toast.error(data.response);
};
const deleteLink = async () => {
diff --git a/pages/api/v1/links/[id]/archive/index.ts b/pages/api/v1/links/[id]/archive/index.ts
index 7fc141f6..65da756c 100644
--- a/pages/api/v1/links/[id]/archive/index.ts
+++ b/pages/api/v1/links/[id]/archive/index.ts
@@ -47,7 +47,7 @@ export default async function links(req: NextApiRequest, res: NextApiResponse) {
});
}
- // Later?
+ // TODO - Later?
// else if (req.method === "DELETE") {}
}