Fix duplicated projects in the drop down on the new reports page [SCI-6375]

This commit is contained in:
Oleksii Kriuchykhin 2021-12-13 17:02:36 +01:00
parent 1e652c0a73
commit f4e2727af1

View file

@ -360,6 +360,7 @@ class ReportsController < ApplicationController
.with_granted_permissions(current_user, ProjectPermissions::READ)
.merge(Experiment.active)
.merge(MyModule.active)
.group(:id)
.select(:id, :name)
end