Skip to content

Commit

Permalink
fix: image url fix
Browse files Browse the repository at this point in the history
  • Loading branch information
navneethkrish authored and madan-ideas2it committed Dec 5, 2024
1 parent a86d72b commit a079128
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/back-office/pages/member-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export default function MemberView(props) {
imageUid: image?.uid ?? values.imageUid,
imageUrl: image?.url ?? imageUrl,
},
};
};
const configuration = {
headers: {
authorization: `Bearer ${props.plnadmin}`,
Expand Down Expand Up @@ -554,7 +554,7 @@ export const getServerSideProps = async (context) => {
formValues = {
name: requestData?.name,
email: requestData?.email,
imageUid: requestData?.image?.url ?? '',
imageUid: requestData?.imageUid ?? '',
imageFile: null,
plnStartDate: requestData?.plnStartDate
? new Date(requestData?.plnStartDate).toISOString().split('T')[0]
Expand All @@ -580,7 +580,7 @@ export const getServerSideProps = async (context) => {
openToWork: requestData?.openToWork ?? '',
projectContributions: requestData?.projectContributions ?? []
};
imageUrl = requestData?.imageUrl ?? '';
imageUrl = requestData?.image?.url ?? '',
teamList = approvedApiResponse?.data?.teamList ?? [];
memberList = approvedApiResponse?.data?.memberList ?? [];
teams = approvedApiResponse?.data?.teams ?? [];
Expand Down

0 comments on commit a079128

Please sign in to comment.