Skip to content

Commit f7723e6

Browse files
committed
Bug fix
1 parent 5a26b0b commit f7723e6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

js/app.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var inputVocabLabel = document.getElementById('inputVocabLabel');
4444
var uploadVocab = document.getElementById('uploadVocab');
4545

4646
//Global variables
47-
const element = document.getElementById('tables');
47+
const tableElement = document.getElementById('tables');
4848
const numberOfResources = 10;
4949
const resourcePath = '/res/test_set';
5050
const resourceType = '.json';
@@ -241,7 +241,6 @@ function getContentDebiasing() {
241241
content['A1'] = document.getElementById('attribute1').value;
242242
content['A2'] = document.getElementById('attribute2').value;
243243
if (augmentSwitch.checked) {
244-
console.log('TRUE I am here');
245244
content['Augmentations1'] = document.getElementById('augmentations1').value;
246245
content['Augmentations2'] = document.getElementById('augmentations2').value;
247246
}
@@ -409,6 +408,7 @@ function handleFileDelete() {
409408

410409
//Load WEAT Test Bias Specifications
411410
async function loadTestData() {
411+
var tableHTML = "";
412412
for (i = 1; i <= numberOfResources; i++) {
413413
var filePath = resourcePath + i + resourceType;
414414
var tableName = 'table' + i;
@@ -466,10 +466,11 @@ async function loadTestData() {
466466
</div>
467467
</div>
468468
`;
469-
element.innerHTML += output;
470-
469+
470+
tableHTML += output;
471471
})
472472
}
473+
tableElement.innerHTML = tableHTML;
473474
}
474475

475476
//Copy WEAT Test to extra container for evaluation

0 commit comments

Comments
 (0)