diff --git a/templates/repo/modelmanage/convertIndex.tmpl b/templates/repo/modelmanage/convertIndex.tmpl index 007a95e3f..27c58c86a 100644 --- a/templates/repo/modelmanage/convertIndex.tmpl +++ b/templates/repo/modelmanage/convertIndex.tmpl @@ -376,8 +376,9 @@ } function loadModelFile(modelId){ console.log("modelId=" + modelId); + $('#choice_file').dropdown('clear') if(modelId ==null || modelId ==""){ - $('#choice_file').dropdown('clear') + console.log("modelId is null"); }else{ $.get(`${repolink}/modelmanage/query_modelfile_for_predict?ID=${modelId}`, (data) => { const n_length = data.length