app/views/lookbook/previews/panels/_notes.html.erb in lookbook-0.8.2 vs app/views/lookbook/previews/panels/_notes.html.erb in lookbook-0.8.3
- old
+ new
@@ -1,6 +1,6 @@
-<% items = examples.filter { |example| example[:notes].present? } %>
+<% items = examples.select { |example| example[:notes].present? } %>
<div class="text-gray-600 bg-gray-50 h-full overflow-auto" data-morph-strategy="replace">
<% if items.many? %>
<div class="divide-y divide-dashed divide-gray-300">
<% items.each do |item| %>
<div class="px-4 pt-3 pb-6 relative">
@@ -20,6 +20,6 @@
<% else %>
<em class='opacity-50'>No notes provided.</em>
<% end %>
</div>
<% end %>
-</div>
\ No newline at end of file
+</div>