From ec67dd1bac3b48b05a3a8b07843ae77c2aa997c7 Mon Sep 17 00:00:00 2001 From: "Arslan, Erdem" Date: Sun, 21 Jan 2024 21:24:17 +0100 Subject: [PATCH] updating fetch request --- pkgs/ui/src/config/client_1/index.tsx | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/pkgs/ui/src/config/client_1/index.tsx b/pkgs/ui/src/config/client_1/index.tsx index 84154ee..0557c19 100644 --- a/pkgs/ui/src/config/client_1/index.tsx +++ b/pkgs/ui/src/config/client_1/index.tsx @@ -14,11 +14,13 @@ export const ClientTableConfig = [ label: "End Point", render: (value: any) => { const onConsume = () => { - fetch(value).then((response) => { - console.log(response) - }).catch(error => { - console.log("Fetch error: ", error) - }) + fetch(value) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.log("Fetch error: ", error); + }); }; return (