@@ -60,32 +60,26 @@ const ProjectEditDetails: React.FC<ProjectEditDetailsProps> = ({
6060 </ FormControl >
6161 </ Grid >
6262 < Grid item xs = { 12 } md = { 6 } sx = { { mt : 1 } } >
63- < FormControl fullWidth >
64- < FormLabel > Project Lead</ FormLabel >
65- < NERAutocomplete
66- id = "users-autocomplete"
67- onChange = { ( _event , value ) => setProjectLead ( value ?. id ) }
68- options = { users . map ( userToAutocompleteOption ) }
69- size = "small"
70- placeholder = "Select a Project Lead"
71- value = { userToAutocompleteOption ( users . find ( ( user ) => user . userId . toString ( ) === projectLead ) ) }
72- listboxProps = { { style : { maxHeight : '180px' } } }
73- />
74- </ FormControl >
63+ < FormLabel > Project Lead</ FormLabel >
64+ < NERAutocomplete
65+ id = "users-autocomplete"
66+ onChange = { ( _event , value ) => setProjectLead ( value ?. id ) }
67+ options = { users . map ( userToAutocompleteOption ) }
68+ size = "small"
69+ placeholder = "Select a Project Lead"
70+ value = { userToAutocompleteOption ( users . find ( ( user ) => user . userId . toString ( ) === projectLead ) ) }
71+ />
7572 </ Grid >
7673 < Grid item xs = { 12 } md = { 6 } sx = { { mt : 1 } } >
77- < FormControl fullWidth >
78- < FormLabel > Project Manager</ FormLabel >
79- < NERAutocomplete
80- id = "users-autocomplete"
81- onChange = { ( _event , value ) => setProjectManager ( value ?. id ) }
82- options = { users . map ( userToAutocompleteOption ) }
83- size = "small"
84- placeholder = "Select a Project Manager"
85- value = { userToAutocompleteOption ( users . find ( ( user ) => user . userId . toString ( ) === projectManager ) ) }
86- listboxProps = { { style : { maxHeight : '180px' } } }
87- />
88- </ FormControl >
74+ < FormLabel > Project Manager</ FormLabel >
75+ < NERAutocomplete
76+ id = "users-autocomplete"
77+ onChange = { ( _event , value ) => setProjectManager ( value ?. id ) }
78+ options = { users . map ( userToAutocompleteOption ) }
79+ size = "small"
80+ placeholder = "Select a Project Manager"
81+ value = { userToAutocompleteOption ( users . find ( ( user ) => user . userId . toString ( ) === projectManager ) ) }
82+ />
8983 </ Grid >
9084 </ Grid >
9185 </ PageBlock >
0 commit comments