From 58571d973454dabe8391a9a39a3fee92843bb138 Mon Sep 17 00:00:00 2001 From: "balakrishna@mantralabsglobal.com" Date: Mon, 17 Feb 2020 15:30:52 +0530 Subject: [PATCH] Issue #SB-000 fix: FAQ fix --- src/faq/handler/get-faq-details-handler.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/faq/handler/get-faq-details-handler.ts b/src/faq/handler/get-faq-details-handler.ts index eafb3006b..bfae262f0 100644 --- a/src/faq/handler/get-faq-details-handler.ts +++ b/src/faq/handler/get-faq-details-handler.ts @@ -40,7 +40,13 @@ export class GetFaqDetailsHandler { return this.apiService.fetch(apiRequest) .pipe( map((response) => { - return response.body; + let resp; + try { + resp = JSON.parse(response.body.trim()); + } catch (error) { + resp = response.body; + } + return resp; }) ); }