"vscode:/vscode.git/clone" did not exist on "0330333cd73d8564e7d39239d9cb0f6e8e13cea9"
Unverified Commit e67fea2c authored by Lijiaoa's avatar Lijiaoa Committed by GitHub
Browse files

webui fix search bug (#3715)


Co-authored-by: default avatarLijiao <Lijiaoa@outlook.com>
parent ed401808
...@@ -56,8 +56,8 @@ function getDropdownOptions(parameter): any { ...@@ -56,8 +56,8 @@ function getDropdownOptions(parameter): any {
// change origin data according to parameter type, string -> number // change origin data according to parameter type, string -> number
const convertParametersValue = (searchItems: SearchItems[], relation: Map<string, string>): SearchItems[] => { const convertParametersValue = (searchItems: SearchItems[], relation: Map<string, string>): SearchItems[] => {
const choice: any[] = []; const choice: any[] = [];
const copySearchItems = JSON.parse(JSON.stringify(searchItems));
searchItems.forEach(item => { copySearchItems.forEach(item => {
if (relation.get(item.name) === 'number') { if (relation.get(item.name) === 'number') {
if (item.isChoice === true) { if (item.isChoice === true) {
item.choice.forEach(ele => { item.choice.forEach(ele => {
...@@ -73,7 +73,7 @@ const convertParametersValue = (searchItems: SearchItems[], relation: Map<string ...@@ -73,7 +73,7 @@ const convertParametersValue = (searchItems: SearchItems[], relation: Map<string
} }
}); });
return searchItems; return copySearchItems;
}; };
// relation: trial parameter -> type {conv_size -> number} // relation: trial parameter -> type {conv_size -> number}
const getTrialsBySearchFilters = ( const getTrialsBySearchFilters = (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment