Commit 48b2563e authored by Matija Čupić's avatar Matija Čupić

Fix mixup with enabled/disabled in ClustersFinder

parent efc610d3
...@@ -9,9 +9,9 @@ class ClustersFinder ...@@ -9,9 +9,9 @@ class ClustersFinder
clusters = case @scope clusters = case @scope
when :all when :all
project.clusters project.clusters
when :disabled
project.clusters.enabled
when :enabled when :enabled
project.clusters.enabled
when :disabled
project.clusters.disabled project.clusters.disabled
end end
clusters.map { |cluster| cluster.present(current_user: @user) } clusters.map { |cluster| cluster.present(current_user: @user) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment