# כפתור "תור לבדיקה" עלול לגרום לשגיאה בעת סימון

**URL:** <https://meta.discourse.org/t/queue-for-review-button-can-error-when-flagging/198515>\
**Category:** Bug\
**Created:** [29 ביולי,‏ 2021,‏ 12:05am UTC](https://meta.discourse.org/t/queue-for-review-button-can-error-when-flagging/198515 "2021-07-29T00:05:48Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)\
**Post date:** [29 ביולי,‏ 2021,‏ 12:05am UTC](https://meta.discourse.org/t/queue-for-review-button-can-error-when-flagging/198515/1 "2021-07-29T00:05:48Z")

</div>

A javascript error is thrown when trying to use the Queue for Review button on the flag modal when the post is hidden, or if you had already flagged the post in the past.

The error can be found in the screenshot below and appears to be pointing to [this area of the code](https://github.com/discourse/discourse/blob/1472e47aae5bfdfb6fd9abfe89beb186c751f514/app/assets/javascripts/discourse/app/controllers/flag.js#L268).

 ![flag-error](https://global.discourse-cdn.com/meta/original/3X/3/3/339ce49d9d245332f5cec13c221e89d0363933b6.png)

Repro for queuing a hidden post:

Repro for queuing a post you already had flagged:

For a fix, we’ll need to decide if the Queue for Review button should just not be rendered in those two scenarios, or if it should have the power to **always** send a post to the review queue.

---

_[View the full topic](https://meta.discourse.org/t/queue-for-review-button-can-error-when-flagging/198515)._
