diff --git a/app/views/solid_errors/occurrences/_occurrence.html.erb b/app/views/solid_errors/occurrences/_occurrence.html.erb index 1e61265..f496802 100644 --- a/app/views/solid_errors/occurrences/_occurrence.html.erb +++ b/app/views/solid_errors/occurrences/_occurrence.html.erb @@ -1,8 +1,9 @@ <% seen_at = occurrence.created_at %> <% backtrace = occurrence.parsed_backtrace %> +<% open ||= (defined?(occurrence_counter) && occurrence_counter.zero?) || true %> <%= tag.section id: dom_id(occurrence), class: "" do %> - <%= tag.details open: occurrence_counter.zero? do %> + <%= tag.details open: open do %> <%= time_tag seen_at, seen_at %> (<%= time_ago_in_words(seen_at) %> ago)