Orange warning triangle displayed when using only free text phenotypes

Description

If there are only custom terms, the scorer reports a score of 0, which looks correct in this case. That is returned via JSON to SpecificityMetricWidget javascript.
In that javascript is this piece of code:

json && json.score evaluates to false (since json.score == 0), and score is set to -1, and unknownValue() is triggered displaying the red triangle.
I think this is a bug, since the test explicitly tests "if (score >= 0)", i.e. value of 0 is supposed to be valid.

Environment

None

Assignee

Sergiu Dumitriu

Reporter

Sasha Andjic

Labels

None

External issue ID

None

Epic Link

Fix versions

Affects versions

Priority

Medium
Configure