How can I extract values with duplicate criteriaCode? (Remove one item and leave other)

local!combinedCriteriaResults: a!flatten(
    {
      local!test1.criteriaResults,
      local!test2.criteriaResults,
      local!test3.criteriaResults,
      local!test4.criteriaResults
    }
  ),

Local variables show there is two items with the same criteriaCode. How can I remove one item and leave the other with the same code?

  Discussion posts and replies are publicly visible