Skip to content

Commit

Permalink
Merge pull request #293 from balakrishna10/release-2.7.0
Browse files Browse the repository at this point in the history
Issue #SB-000 fix: FAQ fix
  • Loading branch information
swayangjit authored Feb 17, 2020
2 parents 44e3c4b + c5fee1f commit 7acc319
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 7acc319

Please sign in to comment.