21

When reviewing suggested edits from the post page (i.e. not from the queue), if I'm the first reviewer and click Approve, the content greys-out but then nothing happens and I see this error in the browser console:

Uncaught TypeError: Cannot read properties of undefined (reading 'toString')
    at o (review-v2-transpiled.en.js?v=1c40da55cd4d:1)
    at Object.alternativeCallback (review-v2-transpiled.en.js?v=1c40da55cd4d:1)
    at Object.success (review-v2-transpiled.en.js?v=1c40da55cd4d:1)
    at i (jquery.min.js:2)
    at Object.fireWith [as resolveWith] (jquery.min.js:2)
    at y (jquery.min.js:4)
    at XMLHttpRequest.c (jquery.min.js:4)

If I reload the page and open the suggested edit again, I see a banner saying that I already approved so the action did work correctly.

This doesn't happen if I'm the final approver and the suggested edit is applied.

It also doesn't happen when reviewing from the queue.

3
  • 4
    Repro'd this yesterday when rejecting, thought it was a one-off Commented Sep 29, 2021 at 4:46
  • 2
    I just tried this (MacOS Big Sur, Firefox 92.0.1) and got Uncaught TypeError: t.currentQueueLimit is undefined o https://cdn.sstatic.net/Js/review-v2-transpiled.en.js?v=1c40da55cd4d:1 alternativeCallback https://cdn.sstatic.net/Js/review-v2-transpiled.en.js?v=1c40da55cd4d:1 success https://cdn.sstatic.net/Js/review-v2-transpiled.en.js?v=1c40da55cd4d:1 jQuery 4
    – BSMP
    Commented Sep 29, 2021 at 5:18
  • Corresponding MSE post: Reviewing a suggested edit "inline" does not dismiss the popup
    – V2Blast Staff
    Commented Nov 11, 2021 at 20:27

1 Answer 1

11

Finally looking into this and it's an easy fix, luckily. Unluckily, I'm the one that broke it. :-| I was trying to update the review count that appears at the top of the queue when each task is loaded (because it can change in some circumstances), but didn't account for the in-post popup case, where the count doesn't exist at all. The fix is in review now and will be out probably on Monday. Thanks for reporting.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .