Skip to content

Commit

Permalink
trying one thing
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwarchol committed Apr 10, 2024
1 parent 997a075 commit 9324e68
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions minerva_analysis/client/src/js/services/importFormValidation.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,7 @@ async function fillCSVFileList() {
let path = d3.select('#mcmicro_output_folder').property("value");

//remove old selection options as soon as path changes
var select_field = document.getElementById("mcmicro_masks");
select_field.innerHTML = "";


try {
//get available segmentation masks in mcmicro directory from server
Expand All @@ -268,7 +267,8 @@ async function fillCSVFileList() {
)
});
let response_data = await response.json();

var select_field = document.getElementById("mcmicro_masks");
select_field.innerHTML = "";
//fill select form field with new options
response_data.forEach(function (option_value) {
var option = document.createElement("option");
Expand All @@ -292,9 +292,7 @@ async function fillImgFileList() {
let path = d3.select('#mcmicro_output_folder').property("value");


//remove old selection options as soon as path changes
var select_field = document.getElementById("mcmicro_images");
select_field.innerHTML = "";


try {
//get available segmentation masks in mcmicro directory from server
Expand All @@ -311,7 +309,9 @@ async function fillImgFileList() {
)
});
let response_data = await response.json();

//remove old selection options as soon as path changes
var select_field = document.getElementById("mcmicro_images");
select_field.innerHTML = "";
//fill select form field with new options
response_data.forEach(function (option_value) {
var option = document.createElement("option");
Expand All @@ -335,8 +335,7 @@ async function fillSegFileList() {
let path = d3.select('#mcmicro_output_folder').property("value");

//remove old selection options as soon as path changes
var select_field = document.getElementById("mcmicro_seg");
select_field.innerHTML = "";


try {
//get available segmentation masks in mcmicro directory from server
Expand All @@ -353,7 +352,8 @@ async function fillSegFileList() {
)
});
let response_data = await response.json();

var select_field = document.getElementById("mcmicro_seg");
select_field.innerHTML = "";
//fill select form field with new options
response_data.forEach(function (option_value) {
var option = document.createElement("option");
Expand Down

0 comments on commit 9324e68

Please sign in to comment.