Skip to content

Commit

Permalink
function cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Kiprotich committed Dec 12, 2024
1 parent a862a8a commit fbaf335
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ const UsersSelector = <T,>(props: UsersSelectorProps<T>) => {
onChange(data.selectedItem?.uuid);
}}
initialSelectedItem={
userList?.find((p) => p.uuid === (autoPopulateResponsiblePerson ? user.uuid : props.userUuid)) ?? user
userList?.find((p) => p.uuid === (props?.userUuid ?? autoPopulateResponsiblePerson ? user.uuid : '')) ??
''
}
itemToString={userName}
onInputChange={debouncedSearch}
Expand Down

0 comments on commit fbaf335

Please sign in to comment.