Skip to content

Commit

Permalink
fix search federation portal name as nil issue
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Nov 14, 2024
1 parent 81e13ec commit 3009c13
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/helpers/federation_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ def alert_message_if_federation_error(errors, &block)

def class_federation_configuration(class_object)
is_external = federation_external_class?(class_object)
portal_name = is_external ? helpers.portal_name_from_uri(class_object.links['ui']) : nil

portal_name = is_external ? helpers.portal_name_from_uri(class_object.links['ui']) : helpers.portal_name
result = {
portal_name: portal_name,
portal_color: is_external ? federated_portal_color(portal_name) : nil,
Expand Down

0 comments on commit 3009c13

Please sign in to comment.