Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
send it back if its any nan
Browse files Browse the repository at this point in the history
  • Loading branch information
yyassi-heartex committed Nov 20, 2023
1 parent f51cf82 commit 4f098f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/DataStores/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export const create = (columns) => {
self.totalAnnotations = total_annotations;
if (total_predictions !== null)
self.totalPredictions = total_predictions;
if (similarity_score_upper_limit !== null)
if (!isNaN(similarity_score_upper_limit))
self.similarityUpperLimit = (Math.ceil(similarity_score_upper_limit * SIMILARITY_UPPER_LIMIT_PRECISION) / SIMILARITY_UPPER_LIMIT_PRECISION);
},

Expand Down

0 comments on commit 4f098f4

Please sign in to comment.