Skip to content
This repository was archived by the owner on Apr 26, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants