Skip to content

Commit

Permalink
Merge pull request #428 from cidgoh/fix-required-col-style
Browse files Browse the repository at this point in the history
Let required attribute to take precedence over recommended for header style
  • Loading branch information
ddooley authored Mar 17, 2024
2 parents 97dde0c + f3562d7 commit 25a18fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/DataHarmonizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -552,8 +552,8 @@ class DataHarmonizer {
$(TH).addClass('secondary-header-cell');
if (column > -1) {
const field = self.fields[column];
if (field.recommended) $(TH).addClass('recommended');
else if (field.required) $(TH).addClass('required');
if (field.required) $(TH).addClass('required');
else if (field.recommended) $(TH).addClass('recommended');
}
}
},
Expand Down

0 comments on commit 25a18fe

Please sign in to comment.