summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-01-24 12:27:39 +0000
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-01-24 12:31:14 +0000
commit589f88c05f2bcfae8f87508afc5e38e41989db83 (patch)
treebfc3dc76f1559d0631248fb8769001815078d1d8
parentb60de9c0fd90c310d2a4146f75b67f9f360cbd6c (diff)
downloadgitlab-ce-fix-add-to-mattermost-teams-nil-class.tar.gz
Catch nil teams to render no teams mattermost viewfix-add-to-mattermost-teams-nil-class
-rw-r--r--app/views/projects/mattermosts/new.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/mattermosts/new.html.haml b/app/views/projects/mattermosts/new.html.haml
index 96b1d2aee61..aa1df0e4039 100644
--- a/app/views/projects/mattermosts/new.html.haml
+++ b/app/views/projects/mattermosts/new.html.haml
@@ -2,7 +2,7 @@
.inline.pull-right
= custom_icon('mattermost_logo', size: 48)
%h3 Install Mattermost Command
- - if @teams.empty?
+ - if @teams.nil? || @teams.empty?
= render 'no_teams'
- else
= render 'team_selection'