Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DO NOT MERGE: NP-3365/Fix expression returning undefined #4665

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tharmaman
Copy link
Contributor

Need Eric's approval on monday to make sure this fix is fine

@google-cla google-cla bot added the cla: yes label Jan 22, 2021
@tharmaman tharmaman changed the title DO NOT MERGE: Fix expression returning undefined DO NOT MERGE: NP-3365/Fix expression returning undefined Jan 22, 2021
this.currentWizardlet.currentSection = maybeCurrentSectionFound;
}

return this.currentWizardlet.currentSection;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tharmaman does this work?

return currentWizardlet.sections[wizardPosition$sectionIndex];

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tharmaman it's a synchronization issue. Currently testing a better fix for this

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

    {
      name: 'currentSection',
      expression: function(
        wizardlets,
        wizardPosition$wizardletIndex, wizardPosition$sectionIndex
      ) {
        return wizardlets[wizardPosition$wizardletIndex]
          .sections[wizardPosition$sectionIndex];
      }
    },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants