Skip to content

Commit

Permalink
Fix: Restore user answers on setAttemptObject (fixes #491) (#492)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfoster authored Feb 5, 2024
1 parent 7ccea73 commit 0359d0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/models/componentModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ class ComponentModel extends AdaptModel {
*/
setAttemptObject(object, silent = true) {
this.set(object, { silent });
this.restoreUserAnswers();
}

/**
Expand Down

0 comments on commit 0359d0a

Please sign in to comment.