chore: tweak memo structure

This commit is contained in:
Steven
2024-03-18 23:23:53 +08:00
parent 2dc8ed773c
commit 5f2d6b22be
40 changed files with 1758 additions and 1499 deletions

View File

@ -106,7 +106,7 @@ const CreateMemoRelationDialog: React.FC<Props> = (props: Props) => {
onInputChange={(_, value) => setSearchText(value.trim())}
getOptionKey={(option) => option.name}
getOptionLabel={(option) => option.content}
isOptionEqualToValue={(option, value) => option.id === value.id}
isOptionEqualToValue={(option, value) => option.name === value.name}
renderOption={(props, option) => (
<AutocompleteOption {...props}>
<div className="w-full flex flex-col justify-start items-start">