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 {
// 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 = (
......
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