From 589f88c05f2bcfae8f87508afc5e38e41989db83 Mon Sep 17 00:00:00 2001 From: "Luke \"Jared\" Bennett" Date: Tue, 24 Jan 2017 12:27:39 +0000 Subject: [PATCH] Catch nil teams to render no teams mattermost view --- app/views/projects/mattermosts/new.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/projects/mattermosts/new.html.haml b/app/views/projects/mattermosts/new.html.haml index 96b1d2aee61d..aa1df0e40396 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' -- GitLab