FIX: Conflict error (version was already used)

FIX: Conflict error (version was already used)

diff --git a/app/assets/javascripts/discourse/components/reviewable-flagged-post.js.es6 b/app/assets/javascripts/discourse/components/reviewable-flagged-post.js.es6
index 05e8411..1916a96 100644
--- a/app/assets/javascripts/discourse/components/reviewable-flagged-post.js.es6
+++ b/app/assets/javascripts/discourse/components/reviewable-flagged-post.js.es6
@@ -4,7 +4,7 @@ import { historyHeat } from "discourse/widgets/post-edits-indicator";
 import showModal from "discourse/lib/show-modal";
 
 export default Ember.Component.extend({
-  hasEdits: Ember.computed.gt("reviewable.version", 1),
+  hasEdits: Ember.computed.gt("reviewable.post_version", 1),
 
   @computed("reviewable.post_updated_at")
   historyClass(updatedAt) {
diff --git a/app/serializers/reviewable_flagged_post_serializer.rb b/app/serializers/reviewable_flagged_post_serializer.rb
index 2f32b90..d4e8c81 100644
--- a/app/serializers/reviewable_flagged_post_serializer.rb
+++ b/app/serializers/reviewable_flagged_post_serializer.rb
@@ -1,6 +1,10 @@
 class ReviewableFlaggedPostSerializer < ReviewableSerializer
-  target_attributes :cooked, :raw, :reply_count, :version
-  attributes :blank_post, :post_updated_at
+  target_attributes :cooked, :raw, :reply_count
+  attributes :blank_post, :post_updated_at, :post_version
+
+  def post_version
+    object.target&.version
+  end
 
   def post_updated_at
     object.target&.updated_at

GitHub sha: 99a2a769