From 3d469baaf55e4facf6782090ef97645a9862a575 Mon Sep 17 00:00:00 2001 From: James Melvin Date: Sun, 8 Jan 2023 10:26:32 +0530 Subject: [PATCH] fix: handling for 204 return status. Since text_labels API responds with no data --- website/src/pages/api/set_label.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/pages/api/set_label.ts b/website/src/pages/api/set_label.ts index 970e1687..202f30cd 100644 --- a/website/src/pages/api/set_label.ts +++ b/website/src/pages/api/set_label.ts @@ -36,7 +36,7 @@ const handler = async (req, res) => { }), }); - res.status(interactionRes.status).json(interactionRes.json()); + res.status(interactionRes.status).end(); }; export default handler;