Skip to content

Commit

Permalink
Merge pull request #118 from zhx828/fix-issue
Browse files Browse the repository at this point in the history
Only download the changes when location is available
  • Loading branch information
zhx828 authored Mar 28, 2022
2 parents b9faced + 5ae0e1a commit 3d6e059
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions app/scripts/controllers/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,16 @@ angular.module('oncokbApp')
};
$scope.historySearchResults.forEach(function(recordByTime){
recordByTime.records.forEach(function (record) {
var locationTarget = getLocationTarget(record.location);
result[locationTarget].push({
gene: recordByTime.gene,
timeStamp: recordByTime.timeStamp,
record: record
});
if (record.location) {
var locationTarget = getLocationTarget(record.location);
result[locationTarget].push({
gene: recordByTime.gene,
timeStamp: recordByTime.timeStamp,
record: record
});
} else {
console.log('no location', record);
}
});
});

Expand Down

0 comments on commit 3d6e059

Please sign in to comment.