diff options
author | Phil Hughes <me@iamphill.com> | 2016-04-20 19:32:13 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-04-20 19:32:13 +0100 |
commit | 490f77318b8d54be30558c3ef8914335ed83549b (patch) | |
tree | 8a6bcaacbe8ede6a4edd36aec87d4c7451a02642 | |
parent | ab93ea04aa6b81d518033af7c042d2c70c1e9828 (diff) | |
download | gitlab-ce-490f77318b8d54be30558c3ef8914335ed83549b.tar.gz |
Fixed tests because of nil array
-rw-r--r-- | app/views/shared/issuable/_filter.html.haml | 7 |
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(); |