|
|
|
@@ -184,10 +184,10 @@ |
|
|
|
let type_id = $('#benchmark_types_id').val(); |
|
|
|
$.get(`${repolink}/cloudbrain/benchmark/get_child_types?benchmark_type_id=${type_id}`, (data) => { |
|
|
|
console.log(JSON.stringify(data)) |
|
|
|
const n_length = data.child_types.length |
|
|
|
const n_length = data['child_types'].length |
|
|
|
let html='' |
|
|
|
for (let i=0;i<n_length;i++){ |
|
|
|
html += `<option value="${data.child_types[i].Id}">"${data.child_types[i].Value}"</option>`; |
|
|
|
html += `<option value="${data['child_types'][i].id}">"${data['child_types'][i].value}"</option>`; |
|
|
|
} |
|
|
|
document.getElementById("benchmark_child_types_id").innerHTML=html; |
|
|
|
}) |
|
|
|
|