You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During question replacement in quiz creation, the replacements are being slotted to the bottom of the list rather than put into the place of the questions which were selected to be replaced.
This handleReplacement function should be refactored so that the position of the questions to be removed are replaced with the user's selected replacements.
This function currently just gathers a list of the questions which are not being replaced. Then it just pops the new questions on the end. I think that updating the filter to a map where we either return the first replacement or the "activeQuestion" we're getting in the iteration. I think an approach like this can avoid getting complicated but don't feel committed to this if it doesn't pan out.
Note how the questions I selected for replacement are at the bottom rather than where I'd selected the questions I wanted replaced
2024-05-06.16-57-59.mp4
The text was updated successfully, but these errors were encountered:
Overview
During question replacement in quiz creation, the replacements are being slotted to the bottom of the list rather than put into the place of the questions which were selected to be replaced.
This
handleReplacement
function should be refactored so that the position of the questions to be removed are replaced with the user's selected replacements.This function currently just gathers a list of the questions which are not being replaced. Then it just pops the new questions on the end. I think that updating the
filter
to amap
where we either return the first replacement or the "activeQuestion" we're getting in the iteration. I think an approach like this can avoid getting complicated but don't feel committed to this if it doesn't pan out.Note how the questions I selected for replacement are at the bottom rather than where I'd selected the questions I wanted replaced
2024-05-06.16-57-59.mp4
The text was updated successfully, but these errors were encountered: