Skip to content

Commit

Permalink
Issue #SB-000 fix: FAQ fix
Browse files Browse the repository at this point in the history
  • Loading branch information
balakrishna-m committed Feb 17, 2020
1 parent 1dd4933 commit 58571d9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/faq/handler/get-faq-details-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})
);
}
Expand Down

0 comments on commit 58571d9

Please sign in to comment.