Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eclipse Foundation
IT
Websites
membership.eclipse.org
Commits
d2143617
Commit
d2143617
authored
Jul 28, 2021
by
Zhou Fang
Committed by
Martin Lowe
Jul 28, 2021
Browse files
added some comments
parent
f4ee656c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/www/src/components/Application/WorkingGroups/WorkingGroup.js
View file @
d2143617
...
...
@@ -93,7 +93,10 @@ const WorkingGroup = ({ formik, fullWorkingGroupList, isLoading }) => {
option
.
value
===
value
.
value
}
getOptionDisabled
=
{(
option
)
=>
{
// disable all selected WGs
// getOptionDisabled need a boolen,
// so here we use !! for the result of array.find
// selectedWG will be true if the WG is already selected
// In this way, all selected WGs will be disabled
const
selectedWG
=
!!
formik
.
values
.
workingGroups
.
find
(
(
selectedWG
)
=>
selectedWG
.
workingGroup
.
label
===
option
.
label
...
...
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