зеркало из https://github.com/microsoft/nni.git
webui fix search bug (#3715)
Co-authored-by: Lijiao <Lijiaoa@outlook.com>
This commit is contained in:
Родитель
ed401808f9
Коммит
e67fea2c7e
|
@ -56,8 +56,8 @@ function getDropdownOptions(parameter): any {
|
|||
// change origin data according to parameter type, string -> number
|
||||
const convertParametersValue = (searchItems: SearchItems[], relation: Map<string, string>): SearchItems[] => {
|
||||
const choice: any[] = [];
|
||||
|
||||
searchItems.forEach(item => {
|
||||
const copySearchItems = JSON.parse(JSON.stringify(searchItems));
|
||||
copySearchItems.forEach(item => {
|
||||
if (relation.get(item.name) === 'number') {
|
||||
if (item.isChoice === true) {
|
||||
item.choice.forEach(ele => {
|
||||
|
@ -73,7 +73,7 @@ const convertParametersValue = (searchItems: SearchItems[], relation: Map<string
|
|||
}
|
||||
});
|
||||
|
||||
return searchItems;
|
||||
return copySearchItems;
|
||||
};
|
||||
// relation: trial parameter -> type {conv_size -> number}
|
||||
const getTrialsBySearchFilters = (
|
||||
|
|
Загрузка…
Ссылка в новой задаче