Skip to content

Commit

Permalink
Update app/models/decidim/superspaces/superspace.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
fblupi authored Jan 9, 2025
1 parent e43502d commit 7c1ce46
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/models/decidim/superspaces/superspace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ def self.log_presenter_class_for(_log) = Decidim::Superspaces::AdminLog::Supersp
private

def find_spaces_by_type(type)
spaces = superspaces_participatory_spaces.where(participatory_space_type: type)

spaces.map(&:participatory_space)
superspaces_participatory_spaces.where(participatory_space_type: type).map(&:participatory_space)
end
end
end
Expand Down

0 comments on commit 7c1ce46

Please sign in to comment.