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,
}) => {
const theme = useTheme();
console.log({ options });
return (
<Autocomplete
onBlur={onBlur}
@@ -79,6 +80,7 @@ const Search = ({
disableClearable
options={options}
getOptionLabel={(option) => option[filteredBy]}
isOptionEqualToValue={(option, value) => option._id === value._id} // Compare by unique identifier
renderInput={(params) => (
<Stack>
<Typography