summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-04-20 19:32:13 +0100
committerPhil Hughes <me@iamphill.com>2016-04-20 19:32:13 +0100
commit490f77318b8d54be30558c3ef8914335ed83549b (patch)
tree8a6bcaacbe8ede6a4edd36aec87d4c7451a02642
parentab93ea04aa6b81d518033af7c042d2c70c1e9828 (diff)
downloadgitlab-ce-490f77318b8d54be30558c3ef8914335ed83549b.tar.gz
Fixed tests because of nil array
-rw-r--r--app/views/shared/issuable/_filter.html.haml7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/shared/issuable/_filter.html.haml b/app/views/shared/issuable/_filter.html.haml
index f828717250b..ade0a56b2e7 100644
--- a/app/views/shared/issuable/_filter.html.haml
+++ b/app/views/shared/issuable/_filter.html.haml
@@ -46,9 +46,10 @@
.filter-item.inline
= button_tag "Update issues", class: "btn update_selected_issues btn-save"
- .gray-content-block.second-block.filtered-labels{ class: ("hidden" if !@labels.any?) }
- - if @labels.any?
- = render "shared/labels_row", labels: @labels
+ - if !@labels.nil?
+ .gray-content-block.second-block.filtered-labels{ class: ("hidden" if !@labels.any?) }
+ - if @labels.any?
+ = render "shared/labels_row", labels: @labels
:javascript
new UsersSelect();