Skip to content

Commit

Permalink
Fix hectar loader
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamassau committed Mar 26, 2024
1 parent 97ba48c commit 2496296
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions imports/api/genes/hectar/addHectar.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class HectarProcessor {
* hectar.
*/
getNumberHectar() {
console.log("TEST CONSOLE.LOG")
return this.nHectar;
}

Expand Down Expand Up @@ -57,10 +58,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 2496296

Please sign in to comment.