From 4067aa502514f0c2e0fb0bbbdc614d81a0e3a1e8 Mon Sep 17 00:00:00 2001 From: palash-signoz Date: Thu, 5 May 2022 16:16:13 +0530 Subject: [PATCH] chore: handled the null case (#1096) --- frontend/src/api/errors/getAll.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/api/errors/getAll.ts b/frontend/src/api/errors/getAll.ts index 6de78faf17..dcd8aa8e73 100644 --- a/frontend/src/api/errors/getAll.ts +++ b/frontend/src/api/errors/getAll.ts @@ -19,7 +19,7 @@ const getAll = async ( return { statusCode: 200, error: null, - message: response.data.message, + message: 'Success', payload: response.data, }; } catch (error) {