Skip to content

Commit 42afade

Browse files
committed
Delete error msg rows on modal close
1 parent f1182c8 commit 42afade

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/DataHarmonizer.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ class DataHarmonizer {
162162

163163
// Reset specify header modal values when the modal is closed
164164
$('#specify-headers-modal').on('hidden.bs.modal', () => {
165+
$('.mapping-row').remove();
165166
$('#specify-headers-err-msg').hide();
166167
$('#specify-headers-confirm-btn').unbind();
167168
});
@@ -1355,9 +1356,9 @@ class DataHarmonizer {
13551356
const rowCells = expectedHeaderCell + actualHeaderCell;
13561357
let row;
13571358
if (expectedHeader !== matrix[1][i]) {
1358-
row = $(`<tr class="table-warning">${rowCells}</tr>`);
1359+
row = $(`<tr class="table-warning mapping-row">${rowCells}</tr>`);
13591360
} else {
1360-
row = $(`<tr>${rowCells}</tr>`);
1361+
row = $(`<tr class="mapping-row">${rowCells}</tr>`);
13611362
}
13621363
$fieldMappingBody.append(row);
13631364
});

0 commit comments

Comments
 (0)