Skip to content

Commit

Permalink
refactor: last update
Browse files Browse the repository at this point in the history
  • Loading branch information
Stef-Rousset committed May 23, 2024
1 parent 78b4edc commit 48618cd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ def find_space_follow_id(follows, resource, space)

def find_children_follows_ids(follows, space)
follows.map do |follow|
object = find_object_followed(follow) || nil
object = find_object_followed(follow).presence
next unless object.respond_to?("decidim_component_id")
return follow.id if space.components.ids.include?(object.decidim_component_id)
end
end.compact
end

def find_object_followed(follow)
Expand Down

0 comments on commit 48618cd

Please sign in to comment.