[WEB-626] chore: fix sentry issues and refactor issue actions logic for issue layouts (#3650)
* restructure the logic to avoid throwing error if any dat is not found * updated files for previous commit * fix build errors * remove throwing error if userId is undefined * optionally chain display_name property to fix sentry issues * add ooptional check * change issue action logic to increase code maintainability and make sure to send only the updated date while updating the issue * fix issue updation bugs * fix module issues build error * fix runtime errors
This commit is contained in:
parent
a852e3cc52
commit
c16a5b9b71
98 changed files with 1402 additions and 1864 deletions
|
|
@ -96,21 +96,22 @@ export const ProfileSidebar = observer(() => {
|
|||
)}
|
||||
<img
|
||||
src={
|
||||
userProjectsData.user_data.cover_image ?? "https://images.unsplash.com/photo-1506383796573-caf02b4a79ab"
|
||||
userProjectsData.user_data?.cover_image ??
|
||||
"https://images.unsplash.com/photo-1506383796573-caf02b4a79ab"
|
||||
}
|
||||
alt={userProjectsData.user_data.display_name}
|
||||
alt={userProjectsData.user_data?.display_name}
|
||||
className="h-32 w-full object-cover"
|
||||
/>
|
||||
<div className="absolute -bottom-[26px] left-5 h-[52px] w-[52px] rounded">
|
||||
{userProjectsData.user_data.avatar && userProjectsData.user_data.avatar !== "" ? (
|
||||
{userProjectsData.user_data?.avatar && userProjectsData.user_data?.avatar !== "" ? (
|
||||
<img
|
||||
src={userProjectsData.user_data.avatar}
|
||||
alt={userProjectsData.user_data.display_name}
|
||||
src={userProjectsData.user_data?.avatar}
|
||||
alt={userProjectsData.user_data?.display_name}
|
||||
className="h-full w-full rounded object-cover"
|
||||
/>
|
||||
) : (
|
||||
<div className="flex h-[52px] w-[52px] items-center justify-center rounded bg-custom-background-90 capitalize text-custom-text-100">
|
||||
{userProjectsData.user_data.first_name?.[0]}
|
||||
{userProjectsData.user_data?.first_name?.[0]}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
|
@ -118,9 +119,9 @@ export const ProfileSidebar = observer(() => {
|
|||
<div className="px-5">
|
||||
<div className="mt-[38px]">
|
||||
<h4 className="text-lg font-semibold">
|
||||
{userProjectsData.user_data.first_name} {userProjectsData.user_data.last_name}
|
||||
{userProjectsData.user_data?.first_name} {userProjectsData.user_data?.last_name}
|
||||
</h4>
|
||||
<h6 className="text-sm text-custom-text-200">({userProjectsData.user_data.display_name})</h6>
|
||||
<h6 className="text-sm text-custom-text-200">({userProjectsData.user_data?.display_name})</h6>
|
||||
</div>
|
||||
<div className="mt-6 space-y-5">
|
||||
{userDetails.map((detail) => (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue