mattermost_helper.rb « helpers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
# frozen_string_literal: true
module MattermostHelper
def mattermost_teams_options(teams)
teams.map do |team|
[team['display_name'] || team['name'], team['id']]
end
end
end