Fixed bug where app would crash in multi person property if a set user is not a board member (#3870)

This commit is contained in:
Harshil Sharma 2022-09-19 20:10:40 +05:30 committed by GitHub
parent 68f03d3fb1
commit a591fe108b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,9 +59,9 @@ const MultiPerson = (props: PropertyProps) => {
const boardUsersById = useAppSelector<{[key: string]: IUser}>(getBoardUsers)
const boardUsers = useAppSelector<IUser[]>(getBoardUsersList)
const formatOptionLabel = (user: any) => {
const formatOptionLabel = (user: any): JSX.Element => {
if (!user) {
return {}
return <div/>
}
let profileImg
if (imageURLForUser) {