From 2dca001e12ea825b0864206864bc9d0cdb9bb0fa Mon Sep 17 00:00:00 2001 From: BrokenEagle Date: Fri, 21 Feb 2020 21:56:40 +0000 Subject: [PATCH] Fix searching artist commentaries by post ID --- app/views/artist_commentary_versions/_listing.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/artist_commentary_versions/_listing.html.erb b/app/views/artist_commentary_versions/_listing.html.erb index fd4fb089d..e275611ca 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 %>