Skip to content

Commit

Permalink
Merge pull request #2855 from manyfold3d/fix-collection-error
Browse files Browse the repository at this point in the history
Fix error browsing collections with library filter
  • Loading branch information
Floppy authored Oct 3, 2024
2 parents 420258d + fb64035 commit a9fee71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/collections_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class CollectionsController < ApplicationController
def index
@models = filtered_models @filters
@collections = policy_scope(Collection)
@collections = @collections.tree_both(Collection.find_param(@filters[:collection]).id || nil, @models.pluck(:collection_id).uniq) unless @filters.empty?
@collections = @collections.tree_both(Collection.find_param(@filters[:collection]).id || nil, @models.pluck(:collection_id).uniq) unless @filters[:collection].nil?

@tags, @unrelated_tag_count = generate_tag_list(@models, @filter_tags)
@tags, @kv_tags = split_key_value_tags(@tags)
Expand Down

0 comments on commit a9fee71

Please sign in to comment.