From a591fe108b590049a55bb428d34caf57d12845ac Mon Sep 17 00:00:00 2001 From: Harshil Sharma <18575143+harshilsharma63@users.noreply.github.com> Date: Mon, 19 Sep 2022 20:10:40 +0530 Subject: [PATCH] Fixed bug where app would crash in multi person property if a set user is not a board member (#3870) --- webapp/src/properties/multiperson/multiperson.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/src/properties/multiperson/multiperson.tsx b/webapp/src/properties/multiperson/multiperson.tsx index a49368eb5..9f14339cc 100644 --- a/webapp/src/properties/multiperson/multiperson.tsx +++ b/webapp/src/properties/multiperson/multiperson.tsx @@ -59,9 +59,9 @@ const MultiPerson = (props: PropertyProps) => { const boardUsersById = useAppSelector<{[key: string]: IUser}>(getBoardUsers) const boardUsers = useAppSelector(getBoardUsersList) - const formatOptionLabel = (user: any) => { + const formatOptionLabel = (user: any): JSX.Element => { if (!user) { - return {} + return
} let profileImg if (imageURLForUser) {