Commit c9cfa9d6 authored by Imran Hussain's avatar Imran Hussain
Browse files

Really fix #17

parent d0431ea3
Pipeline #720 passed with stages
in 2 minutes and 45 seconds
......@@ -59,7 +59,7 @@ module.exports = {
const apiResponse = await getContent(apiurl);
// Check to see if we only get one type of member
if (apiResponse.table1.table1_Product_Collection.table1_Product[0] === undefined) {
if (JSON.parse(apiResponse).table1.table1_Product_Collection.table1_Product[0] === undefined) {
return JSON.parse(apiResponse).table1.table1_Product_Collection.table1_Product.Detail_Collection.Detail;
} else {
return JSON.parse(apiResponse).table1.table1_Product_Collection.table1_Product[0].Detail_Collection.Detail;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment