Skip to content
Snippets Groups Projects
Commit c8a71fc2 authored by Gyan Gupta's avatar Gyan Gupta
Browse files

fix test

parent cbccb03e
Branches
Tags
1 merge request!334Re-enable user agreement
Pipeline #16744 passed
......@@ -5,7 +5,7 @@ class NestedPersonAttributeRenderer < NestedAttributeRenderer
value = parse_value(input_value)
unless value.blank?
value = value.sort_by{|a| a['role'][0] == "creator" ? 0 : 1}
value = value.sort_by{|a| (a['role'].present? && a['role'][0] == "creator") ? 0 : 1}
end
value.each do |v|
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment