File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
extensions/ql-vscode/src/view/compare-performance Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ class ComparisonDataset {
81
81
}
82
82
}
83
83
84
- function renderOptionalValue ( x : Optional < number > , unit ? : string ) {
84
+ function renderOptionalValue ( x : Optional < number > , unit : string | undefined ) {
85
85
switch ( x ) {
86
86
case AbsentReason . NotSeen :
87
87
return < AbsentNumberCell > n/a</ AbsentNumberCell > ;
@@ -712,8 +712,8 @@ function PredicateRowGroup(props: PredicateRowGroupProps) {
712
712
< ChevronCell >
713
713
< Chevron expanded = { isExpanded } />
714
714
</ ChevronCell >
715
- { comparison && renderOptionalValue ( rowGroup . before ) }
716
- { renderOptionalValue ( rowGroup . after ) }
715
+ { comparison && renderOptionalValue ( rowGroup . before , metric . unit ) }
716
+ { renderOptionalValue ( rowGroup . after , metric . unit ) }
717
717
{ comparison && renderDelta ( rowGroup . diff , metric . unit ) }
718
718
< NameCell >
719
719
{ renderedName } ({ rowGroup . rows . length } predicates)
You can’t perform that action at this time.
0 commit comments