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

fixes for failing test cases

parent 7bbcaae0
Branches
Tags
1 merge request!342Fixes for failing test cases
Pipeline #17006 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