From 474f9b7acb21da6431f47c62b5147de4d9b6b8b9 Mon Sep 17 00:00:00 2001 From: Gautam Bajaj Date: Fri, 13 Sep 2024 10:09:46 +0530 Subject: [PATCH 1/2] minor fix --- ecc/components/profile/profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecc/components/profile/profile.js b/ecc/components/profile/profile.js index ffdbe133..cb814a9d 100644 --- a/ecc/components/profile/profile.js +++ b/ecc/components/profile/profile.js @@ -41,7 +41,7 @@ export class Profile extends LitElement { this.attachShadow({ mode: 'open' }); this.fieldlabels = this.fieldlabels ?? DEFAULT_FIELD_LABELS; - this.profile = this.profile ?? { socialMedia: [{ link: '' }] }; + this.profile = this.profile ?? { socialMedia: [{ link: '' }], isPlaceholder: true }; this.profileCopy = {}; } From 80cbe31f007e4a5f4f219d05bd640d41901dab50 Mon Sep 17 00:00:00 2001 From: Gautam Bajaj Date: Fri, 13 Sep 2024 10:25:17 +0530 Subject: [PATCH 2/2] adding default value for isPlaceholder --- ecc/blocks/profile-component/profile-component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecc/blocks/profile-component/profile-component.js b/ecc/blocks/profile-component/profile-component.js index 613d1e31..db41d1a5 100644 --- a/ecc/blocks/profile-component/profile-component.js +++ b/ecc/blocks/profile-component/profile-component.js @@ -36,7 +36,7 @@ async function decorateProfile(element) { const profileContainer = createTag('profile-container', { class: 'profile-component' }); profileContainer.fieldlabels = fieldlabels; - profileContainer.profiles = [{ socialMedia: [{ link: '' }] }]; + profileContainer.profiles = [{ socialMedia: [{ link: '' }], isPlaceholder: true }]; element.append(profileContainer); }