We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b9faced + 5ae0e1a commit 3d6e059Copy full SHA for 3d6e059
1 file changed
app/scripts/controllers/tools.js
@@ -340,12 +340,16 @@ angular.module('oncokbApp')
340
};
341
$scope.historySearchResults.forEach(function(recordByTime){
342
recordByTime.records.forEach(function (record) {
343
- var locationTarget = getLocationTarget(record.location);
344
- result[locationTarget].push({
345
- gene: recordByTime.gene,
346
- timeStamp: recordByTime.timeStamp,
347
- record: record
348
- });
+ if (record.location) {
+ var locationTarget = getLocationTarget(record.location);
+ result[locationTarget].push({
+ gene: recordByTime.gene,
+ timeStamp: recordByTime.timeStamp,
+ record: record
349
+ });
350
+ } else {
351
+ console.log('no location', record);
352
+ }
353
});
354
355
0 commit comments