bug fixed
This commit is contained in:
parent
c8edc3844b
commit
7bdef522c1
|
@ -110,7 +110,7 @@ export default function LinkCard({ link, count, className }: Props) {
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
toast.success(`Link is being archived...`);
|
toast.success(`Link is being archived...`);
|
||||||
getLink(link.id as number);
|
getLink(link.id as number);
|
||||||
} else toast.error(data);
|
} else toast.error(data.response);
|
||||||
};
|
};
|
||||||
|
|
||||||
const deleteLink = async () => {
|
const deleteLink = async () => {
|
||||||
|
|
|
@ -47,7 +47,7 @@ export default async function links(req: NextApiRequest, res: NextApiResponse) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Later?
|
// TODO - Later?
|
||||||
// else if (req.method === "DELETE") {}
|
// else if (req.method === "DELETE") {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ŝarĝante…
Reference in New Issue