Don't assume @filter is set

This commit is contained in:
Jason Zimdars
2024-11-18 18:07:45 -06:00
parent c5b44a92a5
commit 9fd774f39d
+1 -1
View File
@@ -1,5 +1,5 @@
<% @filter ||= Current.user.filters.last %>
<% bubble.tags.last(3).each do |tag| %>
<%= link_to tag.hashtag, bubbles_path(@filter.to_params.merge(tag_ids: [ tag.id ])), class: "bubble__bubble bubble__meta bubble__tag" %>
<%= link_to tag.hashtag, bubbles_path(@filter&.to_params&.merge(tag_ids: [ tag.id ])), class: "bubble__bubble bubble__meta bubble__tag" %>
<% end %>