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
bab02efb
"...resnet50_tensorflow.git" did not exist on "2c98b4b0a49a53f80042e92de7049e679ff9abab"
Unverified
Commit
bab02efb
authored
Aug 09, 2021
by
Lijiaoa
Committed by
GitHub
Aug 09, 2021
Browse files
fix id|No. input space bug also support space in seaarch space (#4037)
parent
85d0f22a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
ts/webui/src/components/trial-detail/search/Search.tsx
ts/webui/src/components/trial-detail/search/Search.tsx
+7
-7
No files found.
ts/webui/src/components/trial-detail/search/Search.tsx
View file @
bab02efb
...
...
@@ -110,9 +110,9 @@ function Search(props): any {
updatePage
();
}
//
"[hello, world]", JSON.parse(it) doesn't work so write this function
//
deal with the format 1.[x, (space)xx] 2. (space)[x]
function
convertStringArrToList
(
str
:
string
):
string
[]
{
const
value
=
str
.
slice
(
1
,
str
.
length
-
1
);
// delete []
const
value
=
str
.
trim
().
slice
(
1
,
str
.
trim
().
length
-
1
);
// delete []
// delete ""
const
result
:
string
[]
=
[];
...
...
@@ -172,7 +172,7 @@ function Search(props): any {
newSearchFilter
.
push
({
name
:
eachFilterConditionArr
[
0
],
operator
:
operator
,
value1
:
eachFilterConditionArr
[
1
],
value1
:
eachFilterConditionArr
[
1
]
.
trim
()
,
value2
:
''
,
choice
:
[],
isChoice
:
false
...
...
@@ -185,7 +185,7 @@ function Search(props): any {
newSearchFilter
.
push
({
name
:
filterName
,
operator
:
'
≠
'
,
value1
:
isChoicesType
?
''
:
JSON
.
parse
(
eachFilterConditionArr
[
1
]),
value1
:
isChoicesType
?
''
:
JSON
.
parse
(
eachFilterConditionArr
[
1
]
.
trim
()
),
value2
:
''
,
choice
:
isChoicesType
?
convertStringArrToList
(
eachFilterConditionArr
[
1
])
:
[],
isChoice
:
isChoicesType
?
true
:
false
...
...
@@ -215,8 +215,8 @@ function Search(props): any {
newSearchFilter
.
push
({
name
:
eachFilterConditionArr
[
0
],
operator
:
'
between
'
,
value1
:
JSON
.
parse
(
eachFilterConditionArr
[
1
])[
0
],
value2
:
JSON
.
parse
(
eachFilterConditionArr
[
1
])[
1
],
value1
:
JSON
.
parse
(
eachFilterConditionArr
[
1
]
.
trim
()
)[
0
],
value2
:
JSON
.
parse
(
eachFilterConditionArr
[
1
]
.
trim
()
)[
1
],
choice
:
[],
isChoice
:
false
});
...
...
@@ -225,7 +225,7 @@ function Search(props): any {
newSearchFilter
.
push
({
name
:
eachFilterConditionArr
[
0
],
operator
:
'
=
'
,
value1
:
eachFilterConditionArr
[
1
],
value1
:
eachFilterConditionArr
[
1
]
.
trim
()
,
value2
:
''
,
choice
:
[],
isChoice
:
false
...
...
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