Skip to content

Commit

Permalink
Fix optional profile page detail in the sidekick (#3349)
Browse files Browse the repository at this point in the history
Fix optional profile page detail
  • Loading branch information
mokimo authored Dec 11, 2024
1 parent 74735f0 commit d19c2c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/utils/sidekick-decorate.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export default async function stylePublish(sk) {

const pageDetail = {
webPath: window.location.pathname,
profile: { email: pluginActionBarSR.querySelector('#user').shadowRoot.querySelector('.user [slot="description"]')?.innerText },
profile: { email: pluginActionBarSR.querySelector('#user')?.shadowRoot.querySelector('.user [slot="description"]')?.innerText },
};
if (pageDetail && publishBtn) await checkAuthorization(pageDetail, publishBtn);
}

0 comments on commit d19c2c7

Please sign in to comment.