Skip to content

Commit

Permalink
Merge pull request #1494 from entando/ENG-4884_wizard_pr
Browse files Browse the repository at this point in the history
ENG-4884 wizard ix for legacy menu
  • Loading branch information
ichalagashvili authored May 23, 2023
2 parents a62a6ee + edd0b95 commit f40d41b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ui/app-tour/AppTour.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,9 @@ class AppTour extends React.Component {
onAppTourFinish,
} = this.props;

const getStep3Element = () => document.getElementsByTagName('app-builder-menu')[0].shadowRoot.querySelector('.app-tour-step-3 > a');
const getStep4Element = () => document.getElementsByTagName('app-builder-menu')[0].shadowRoot.querySelector('.app-tour-step-4 > a');
const mfeAppBuilderMenu = document.getElementsByTagName('app-builder-menu') ? document.getElementsByTagName('app-builder-menu')[0] : null;
const getStep3Element = () => (mfeAppBuilderMenu ? mfeAppBuilderMenu.shadowRoot.querySelector('.app-tour-step-3 > a') : document.querySelector('.app-tour-step-3 > a'));
const getStep4Element = () => (mfeAppBuilderMenu ? mfeAppBuilderMenu.shadowRoot.querySelector('.app-tour-step-4 > a') : document.querySelector('.app-tour-step-4 > a'));

const step5Element = document.querySelector('.app-tour-step-5');
const step8Element = document.querySelector('.PageTreeSelector__select-area');
Expand Down

0 comments on commit f40d41b

Please sign in to comment.