explicitly match IDs

This commit is contained in:
Alex Holliday committed 2025-02-05 10:56:50 -08:00
1 parent 7d31b4556b
commit 4e5833c09c
1 file changed
+2
@@ -60,6 +60,7 @@ const Search = ({
onBlur, onBlur,
}) => { }) => {
const theme = useTheme(); const theme = useTheme();
console.log({ options });
return ( return (
<Autocomplete <Autocomplete
onBlur={onBlur} onBlur={onBlur}
@@ -79,6 +80,7 @@ const Search = ({
disableClearable disableClearable
options={options} options={options}
getOptionLabel={(option) => option[filteredBy]} getOptionLabel={(option) => option[filteredBy]}
isOptionEqualToValue={(option, value) => option._id === value._id} // Compare by unique identifier
renderInput={(params) => ( renderInput={(params) => (
<Stack> <Stack>
<Typography <Typography