Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
webui fix search bug (#3715)
Browse files Browse the repository at this point in the history
Co-authored-by: Lijiao <Lijiaoa@outlook.com>
  • Loading branch information
Lijiaoa and Lijiao authored Jun 3, 2021
1 parent ed40180 commit e67fea2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ts/webui/src/components/trial-detail/search/searchFunction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand All @@ -73,7 +73,7 @@ const convertParametersValue = (searchItems: SearchItems[], relation: Map<string
}
});

return searchItems;
return copySearchItems;
};
// relation: trial parameter -> type {conv_size -> number}
const getTrialsBySearchFilters = (
Expand Down

0 comments on commit e67fea2

Please sign in to comment.