Skip to content

Commit

Permalink
Merge pull request #217 from adobecom/deleteicon-bug
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyundai authored Sep 13, 2024
2 parents 5c5ab2d + 80cbe31 commit ff9c41e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ecc/blocks/profile-component/profile-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion ecc/components/profile/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
}

Expand Down

0 comments on commit ff9c41e

Please sign in to comment.