Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ddooley committed Sep 14, 2023
1 parent 6c975b4 commit a030c60
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/DataHarmonizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -533,10 +533,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.recommended) $(TH).addClass('recommended');
else if (field.required) $(TH).addClass('required');
}
}
},
Expand Down Expand Up @@ -564,16 +562,19 @@ class DataHarmonizer {

addRowsToBottom(numRows) {
this.runBehindLoadingScreen(() => {
this.hot.alter('insert_row_below', this.hot.countRows() - 1 + numRows, numRows);
this.hot.alter(
'insert_row_below',
this.hot.countRows() - 1 + numRows,
numRows
);
});
}

showAllColumns() {
this.hot.scrollViewportTo(0, 1);
const hiddenColsPlugin = this.hot.getPlugin('hiddenColumns');
const hidden = hiddenColsPlugin.getHiddenColumns();
if (hidden)
hiddenColsPlugin.showColumns(hidden);
if (hidden) hiddenColsPlugin.showColumns(hidden);
this.hot.render();
}

Expand Down Expand Up @@ -2415,7 +2416,7 @@ class DataHarmonizer {
doUniqueValidation([identifierFieldCol]);
}

// .template_unique_keys contains an object of 0 or more unique keys,
// .template_unique_keys contains an object of 0 or more unique keys,
// each key being a combination of one or more .unique_key_slots names.
// Does unique validation on each unique key combo.
for (const unique_key of this.template_unique_keys) {
Expand All @@ -2428,8 +2429,7 @@ class DataHarmonizer {
// Here an array of (row, column, value)... is being passed, which causes
// rendering operations to happen like .batch(), after all setDataAtCell()
// operations are completed.
if (cellChanges.length)
this.hot.setDataAtCell(cellChanges);
if (cellChanges.length) this.hot.setDataAtCell(cellChanges);

return invalidCells;
}
Expand Down

0 comments on commit a030c60

Please sign in to comment.