Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
e67fea2c
Unverified
Commit
e67fea2c
authored
Jun 03, 2021
by
Lijiaoa
Committed by
GitHub
Jun 03, 2021
Browse files
webui fix search bug (#3715)
Co-authored-by:
Lijiao
<
Lijiaoa@outlook.com
>
parent
ed401808
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ts/webui/src/components/trial-detail/search/searchFunction.ts
...ebui/src/components/trial-detail/search/searchFunction.ts
+3
-3
No files found.
ts/webui/src/components/trial-detail/search/searchFunction.ts
View file @
e67fea2c
...
...
@@ -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
[]
=
[];
s
earchItems
.
forEach
(
item
=>
{
const
copySearchItems
=
JSON
.
parse
(
JSON
.
stringify
(
searchItems
));
copyS
earchItems
.
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
s
earchItems
;
return
copyS
earchItems
;
};
// relation: trial parameter -> type {conv_size -> number}
const
getTrialsBySearchFilters
=
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment