Skip to content

Conversation

@Ayush-Patel-56
Copy link
Contributor

Purpose / Description

Fixes #19225

When editing a note template in the new reviewer, the queue state wasn't successfully updating, which caused errors when trying to undo.

Approach

The ReviewerViewModel wasn't refreshing the queue state when changes.noteText occurred. I added a call to updateCurrentCard() in that block to ensure the local state stays in sync with the backend.

How Has This Been Tested?

Tested manually on the New Study Screen:

  1. Edited a card template during review.
  2. Answered the card.
  3. Pressed Undo.

Previously this errored out ("card modified without updating queue"), now it works correctly.

538358000-7175f074-ab0e-4c44-a54b-5e34ee3c2a27.mp4

Checklist

  • You have a descriptive commit message with a short title (first line, max 50 chars).
  • You have performed a self-review of your own code

@ZornHadNoChoice
Copy link

Did you reproduce the bug in v2.24.0alpha4? I couldn't reproduce it.

@Ayush-Patel-56
Copy link
Contributor Author

@ZornHadNoChoice You are right. I just tested it again on the latest main branch without my changes, and I cannot reproduce the crash either. It seems this was fixed recently by another PR. I had made the changes earlier but raise the PR today.

@Ayush-Patel-56
Copy link
Contributor Author

I'm closing this as this issue is no longer exist #19225

@Ayush-Patel-56 Ayush-Patel-56 deleted the fix-reviewer-sync branch January 21, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Editing the template then undoing a review causes an off by one error

2 participants