[Trunk | Explore Services]: extractUrlsFromSearch.ts: [Bug fix] Add check for undefined value in log.
This commit is contained in:
parent
445758c3ad
commit
a4410578b3
|
@ -25,7 +25,7 @@ function get(resultsPerUrl, resultsType) {
|
||||||
console.error("Error getting refine filters ",err);
|
console.error("Error getting refine filters ",err);
|
||||||
} else {
|
} else {
|
||||||
let keys = refineResponse.body['refineResults'] ? Object.keys(refineResponse.body['refineResults']) : null;
|
let keys = refineResponse.body['refineResults'] ? Object.keys(refineResponse.body['refineResults']) : null;
|
||||||
console.log("number of keys: " + keys.length);
|
console.log("number of keys: " + (keys? keys.length : 'error: no refine results returned'));
|
||||||
|
|
||||||
let allUrls = new Set();
|
let allUrls = new Set();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue