Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
anis
anis-client
Commits
169f653e
Commit
169f653e
authored
Sep 26, 2019
by
Tifenn Guillas
Browse files
Consider using "forEach" instead of "map" as its return value is not being used here
parent
f93365c5
Changes
1
Show whitespace changes
Inline
Side-by-side
src/app/search/components/criteria/search-type/checkbox.component.ts
View file @
169f653e
...
@@ -59,7 +59,7 @@ export class CheckboxComponent {
...
@@ -59,7 +59,7 @@ export class CheckboxComponent {
this
.
checkboxes
.
enable
();
this
.
checkboxes
.
enable
();
}
else
{
}
else
{
const
checkboxCriterion
=
criterion
as
SelectMultipleCriterion
;
const
checkboxCriterion
=
criterion
as
SelectMultipleCriterion
;
checkboxCriterion
.
options
.
map
(
option
=>
{
checkboxCriterion
.
options
.
forEach
(
option
=>
{
this
.
checkboxesFormControls
.
find
(
formControl
=>
formControl
.
value
===
option
.
value
).
control
.
setValue
(
true
);
this
.
checkboxesFormControls
.
find
(
formControl
=>
formControl
.
value
===
option
.
value
).
control
.
setValue
(
true
);
});
});
this
.
checkboxes
.
disable
();
this
.
checkboxes
.
disable
();
...
...
Write
Preview
Supports
Markdown
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