From 385c3fe789159d4091474296f69934f9729197b0 Mon Sep 17 00:00:00 2001 From: Jeff Wong Date: Mon, 30 Mar 2020 15:16:47 -0700 Subject: [PATCH] FIX: claiming topics for the review queue --- .../javascripts/discourse/components/reviewable-item.js.es6 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/components/reviewable-item.js.es6 b/app/assets/javascripts/discourse/components/reviewable-item.js.es6 index 786f7d5440a..f998452e333 100644 --- a/app/assets/javascripts/discourse/components/reviewable-item.js.es6 +++ b/app/assets/javascripts/discourse/components/reviewable-item.js.es6 @@ -22,8 +22,9 @@ export default Component.extend({ return type.dasherize(); }, - @discourseComputed("reviewable.topic_id", "reviewable.removed_topic_id") - topicId(topicId, removedTopicId) { + @discourseComputed("reviewable.topic", "reviewable.removed_topic_id") + topicId(topic, removedTopicId) { + let topicId = topic ? topic.id : null; return topicId || removedTopicId; },