A platform for community discussion. Free, open, simple.
FIX: Performing actions on a particular reviewable was displaying an error
Robin Ward13b979cb71df
diff --git a/app/assets/javascripts/discourse/components/reviewable-item.js.es6 b/app/assets/javascripts/discourse/components/reviewable-item.js.es6index 3a84d0ac07d..d94128f3489 100644--- a/app/assets/javascripts/discourse/components/reviewable-item.js.es6+++ b/app/assets/javascripts/discourse/components/reviewable-item.js.es6@@ -92,7 +92,11 @@ export default Ember.Component.extend({this.currentUser.set("reviewable_count", result.reviewable_count);}- this.attrs.remove(performResult.remove_reviewable_ids);+ if (this.attrs.remove) {+ this.attrs.remove(performResult.remove_reviewable_ids);+ } else {+ return this.store.find("reviewable", reviewable.id);+ }}).catch(popupAjaxError).finally(() => this.set("updating", false));