Skip to content

Commit

Permalink
Let required attribute to take precedence over recommended for header…
Browse files Browse the repository at this point in the history
… style
  • Loading branch information
pkalita-lbl committed Mar 15, 2024
1 parent 97dde0c commit f3562d7
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 f3562d7

Please sign in to comment.