diff options
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 |