Skip to content

Commit

Permalink
Merge pull request #66 from Kmassau/fix_loader_hectar
Browse files Browse the repository at this point in the history
Fix loader hectar
  • Loading branch information
mboudet authored Apr 4, 2024
2 parents 97ba48c + c84d16d commit c9c64f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imports/api/genes/hectar/addHectar.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ class HectarProcessor {
// Filters undefined data (with a dash) and splits into an array for
// comma-separated data.
for (const [key, value] of Object.entries(annotations)) {
if (value[0] === '-') {
if (value === undefined || value[0] === '-') {
annotations[key] = undefined;
}
if (value.indexOf(',') > -1) {
if (value !== undefined && value.indexOf(',') > -1) {
annotations[key] = value.split(',');
}
}
Expand Down

0 comments on commit c9c64f0

Please sign in to comment.