Skip to content

Commit

Permalink
Improved check for empty clusters in script validation
Browse files Browse the repository at this point in the history
  • Loading branch information
abujeda committed Dec 15, 2023
1 parent e74d098 commit be72e5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dashboard/app/models/script.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def next_id

def clusters?
cluster_attribute = SmartAttributes::AttributeFactory.build('auto_batch_clusters', {})
!cluster_attribute.select_choices(hide_excludable: false).empty?
cluster_attribute.select_choices(hide_excludable: false).any?
end
end

Expand Down

0 comments on commit be72e5f

Please sign in to comment.