-
Notifications
You must be signed in to change notification settings - Fork 716
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
Fix replacements order #12218
Fix replacements order #12218
Conversation
Build Artifacts
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested this locally and code LGTM!
const questions = activeQuestions.value.map(question => { | ||
if (selectedActiveQuestions.value.includes(question.id)) { | ||
return replacements.value.shift(); | ||
} | ||
return question; | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love this mapping and shifting of the replacements list.
No issues observed while manually testing. Good to go! Thanks @AlexVelezLl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Manual QA passes, good to go! 💯 👏🏽
Thank you @AlexVelezLl !
Summary
This PR maps the question replacements to the order in which the selected questions are.
References
Closes #12134.
Reviewer guidance
See $12134
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)