diff options
author | Nick Thomas <nick@gitlab.com> | 2017-07-07 13:54:49 +0100 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-07-07 14:35:16 +0100 |
commit | 6b4da27e97a39448d363d453dce81cce574af9b5 (patch) | |
tree | eabcc3e09241a0f4337ae8e1dd58afef77e58684 /app/serializers | |
parent | de2d5ce685877249434ba412b5839910bc703882 (diff) | |
download | gitlab-ce-6b4da27e97a39448d363d453dce81cce574af9b5.tar.gz |
Fix dashboard labels dropdown
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/label_entity.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/serializers/label_entity.rb b/app/serializers/label_entity.rb index ad565654342..4452161051e 100644 --- a/app/serializers/label_entity.rb +++ b/app/serializers/label_entity.rb @@ -1,5 +1,6 @@ class LabelEntity < Grape::Entity - expose :id + expose :id, if: ->(label, _) { !label.is_a?(GlobalLabel) } + expose :title expose :color expose :description |