fix: null check (#19111)

This commit is contained in:
Eunjae Lee
2025-02-05 10:27:42 +00:00
committed by GitHub
parent b7bf58d560
commit 744359dcdf
@@ -43,7 +43,7 @@ export const OrgTeamsFilter = () => {
const getPopoverProps = () => {
if (orgTeamsType === "org") {
return { text: t("all"), placeholder: undefined, imageUrl: data?.[0].logoUrl };
return { text: t("all"), placeholder: undefined, imageUrl: data?.[0]?.logoUrl };
} else if (orgTeamsType === "yours") {
return { text: t("yours"), placeholder: currentUserName, imageUrl: session.data?.user.avatarUrl };
} else if (orgTeamsType === "team") {