@@ -254,7 +254,6 @@ class DataHarmonizer {
254
254
attributes [ name ] ,
255
255
this . context . template . current . schema . slots [ name ]
256
256
) ;
257
- // console.log(field);
258
257
259
258
//let field = attributes[name];
260
259
let section_title = null ;
@@ -579,7 +578,7 @@ class DataHarmonizer {
579
578
// signaling changes.
580
579
await this . doPreValidationRepairs ( data ) ; // Screen refresh requires await().
581
580
this . invalid_cells = this . getInvalidCells ( data ) ;
582
- console . log ( "INVALID CELLS" , this . invalid_cells ) ;
581
+ // console.log("INVALID CELLS", this.invalid_cells);
583
582
this . hot . render ( ) ;
584
583
}
585
584
@@ -2656,6 +2655,7 @@ class DataHarmonizer {
2656
2655
if ( number >= 0 ) {
2657
2656
// Here we have the 3 field call, with units sandwitched in the middle
2658
2657
if ( binOffset === 2 ) {
2658
+
2659
2659
const unit = matrix [ row ] [ hotRowNextCol ] ;
2660
2660
// Host age unit is interpreted by default to be year.
2661
2661
// If user selects month, value is converted into years for binning.
@@ -2691,8 +2691,9 @@ class DataHarmonizer {
2691
2691
selection = bin_value ; // Default value is itself.
2692
2692
2693
2693
const bin_values = fields [ hotRowBinCol ] . flatVocabulary ;
2694
- if ( ! bin_value || ( bin_value === '' && value in bin_values ) ) {
2694
+ if ( value in bin_values && ( ! bin_value || bin_value === '' ) ) {
2695
2695
selection = value ;
2696
+ console . log ( "no bin value" , value ) ;
2696
2697
}
2697
2698
// If a unit field exists, then set that to metadata too.
2698
2699
if ( binOffset == 2 ) {
@@ -2701,7 +2702,7 @@ class DataHarmonizer {
2701
2702
? matrix [ hotRowPtr ] [ hotRowNextCol ]
2702
2703
: null ;
2703
2704
const unit_values = fields [ col + 1 ] . flatVocabulary ;
2704
- if ( ! unit_value || ( unit_value === '' && value in unit_values ) ) {
2705
+ if ( value in unit_values && ( ! unit_value || unit_value === '' ) ) {
2705
2706
triggered_changes . push ( [
2706
2707
hotRowPtr ,
2707
2708
hotRowNextCol ,
0 commit comments