Skip to content

Commit d77a66a

Browse files
tobifalkcassava
authored andcommitted
ui: Fix existence probability output
1 parent 75fb6c5 commit d77a66a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/components/rendering.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -693,10 +693,10 @@ class Rendering extends Component {
693693

694694
createDefaultLabelText = (object) => {
695695
let existProb = 1.0;
696-
if (object.exist_prob) {
696+
if (object.exist_prob !== undefined) {
697697
existProb = object.exist_prob;
698698
}
699-
return `ID: ${object.id} \n Prob.: ${existProb.toFixed(1)}`;
699+
return `ID: ${object.id} \n Prob.: ${existProb.toFixed(2)}`;
700700
};
701701

702702
createDefaultLabel = (text, color) => {

0 commit comments

Comments
 (0)