diff --git a/app/views/artist_commentary_versions/_listing.html.erb b/app/views/artist_commentary_versions/_listing.html.erb index a10e17c59..add68d998 100644 --- a/app/views/artist_commentary_versions/_listing.html.erb +++ b/app/views/artist_commentary_versions/_listing.html.erb @@ -1,6 +1,6 @@
- <% if listing_type(:post_id) == :revert %> + <% if listing_type(:post_id) == :revert && @commentary_versions.present? %> <%= PostPresenter.preview(@commentary_versions.first.post, show_deleted: true) %> <% end %>