From 09892a73fd0a242c71ce277b4405b9147d54d8a1 Mon Sep 17 00:00:00 2001 From: digvijay26 Date: Mon, 11 Jan 2021 09:10:44 +0530 Subject: [PATCH] issue on profile open --- src/components/Profile.vue | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/components/Profile.vue b/src/components/Profile.vue index 116aa2f..2ac6ee5 100644 --- a/src/components/Profile.vue +++ b/src/components/Profile.vue @@ -376,8 +376,8 @@ Add your work{{ userData.designation }} at {{ userData.organisation }} @@ -423,7 +423,7 @@
-
+

Awards

  • @@ -753,15 +753,11 @@ export default { if (!response.data.data.socialMediaProfiles) { this.userData.socialMediaProfiles = {}; } - this.userData = Object.assign(this.userData, response.data.data); + this.userData = response.data.data; // this.userData = response.data.data; this.oldId = this.userData.bgColor; console.log(this.oldId, "this.userData.", this.userData); - this.showDesignation = - this.userData.designation.length == 0 ? true : false; - this.showCompany = - this.userData.organisation.length == 0 ? true : false; console.log("this.userData.firstLogin ",this.userData.firstLogin ) if (this.userData.firstLogin == true) { this.addProfileDialog(); @@ -800,7 +796,7 @@ export default { openStudy(payload) { console.log("payload-", payload); payload.intro.date = payload.createdAt; - payload.intro.focusPoint = payload.createdAt; + payload.intro.focusPoint = payload.focusAreas; axios .get("/caseStudy/slides?caseStudyId=" + payload._id, { headers: { @@ -808,6 +804,7 @@ export default { }, }) .then((response) => { + this.createSlide(payload, response.data.data); }) .catch((error) => console.log(error)); @@ -858,6 +855,7 @@ export default { }); console.log(finalSlides); + console.log("payload",payload) localStorage.setItem( "spotlight_slide" + payload._id, JSON.stringify(finalSlides) @@ -927,6 +925,7 @@ export default { delete obj.karmaPoints; delete obj.awards; delete obj.socialLogin; + delete obj.phoneNo; axios .put("/profile", obj, { headers: { -- 2.0.0