Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
encyclopedia-gui
Commits
9e38e1f5
Commit
9e38e1f5
authored
Apr 01, 2021
by
Lauri Himanen
Browse files
Restyled the composition search.
parent
ada4e9f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
client/src/search-mod/FilterPanel.view.js
View file @
9e38e1f5
...
...
@@ -165,16 +165,12 @@ class FilterPanel {
this
.
fields
.
forEach
(
field
=>
{
const
values
=
field
.
getValues
();
console
.
log
(
"
===============
"
)
console
.
log
(
values
)
if
(
Array
.
isArray
(
values
)
&&
values
.
length
>
0
){
values
.
forEach
(
value
=>
filterMap
.
set
(
value
.
fieldId
,
value
.
value
))
}
else
if
(
values
&&
values
.
value
&&
values
.
value
.
length
>
0
)
{
filterMap
.
set
(
values
.
fieldId
,
values
.
value
);
}
});
console
.
log
(
"
FILTERMAP
"
)
console
.
log
(
filterMap
)
return
filterMap
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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