Skip to content

Commit

Permalink
update browse page categories_refresh_for_federation condition to wor…
Browse files Browse the repository at this point in the history
…k to reset to not federated mod
  • Loading branch information
syphax-bouazzouni committed Dec 11, 2024
1 parent 1576f20 commit 6fb4988
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/controllers/ontologies_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,20 @@ def ontologies_filter
end
end.flatten

unless request_portals.length == 1
if federated_request?
streams += [
replace('categories_refresh_for_federation') do
key = "categories"
key = 'categories'
objects, checked_values, _ = @filters[key.to_sym]
objects = keep_only_root_categories(objects)

helpers.browse_filter_section_body(checked_values: checked_values,
key: key, objects: objects,
counts: @count_objects[key.to_sym])
end
]
end

else
streams = [replace("ontologies_list_view-page-#{@page.page}", partial: 'ontologies/browser/ontologies')]
end
Expand Down

0 comments on commit 6fb4988

Please sign in to comment.