We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e85b73d commit 8440215Copy full SHA for 8440215
1 file changed
frontend/src/components/EmployeeForm.jsx
@@ -126,6 +126,7 @@ const EmployeeForm = () => {
126
<Autocomplete
127
options={deptOptions}
128
getOptionLabel={(option) => option.name || ''}
129
+ getOptionKey={option => option.id}
130
isOptionEqualToValue={(option, value) => option.id === value.id}
131
onInputChange={(event, newInputValue) => {
132
setQuery(newInputValue);
0 commit comments