Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/work_items/widgets/description_type.rb')
-rw-r--r--app/graphql/types/work_items/widgets/description_type.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/graphql/types/work_items/widgets/description_type.rb b/app/graphql/types/work_items/widgets/description_type.rb
index 4861f7f46d8..92dca965b59 100644
--- a/app/graphql/types/work_items/widgets/description_type.rb
+++ b/app/graphql/types/work_items/widgets/description_type.rb
@@ -26,9 +26,7 @@ module Types
null: true,
description: 'User that made the last edit to the work item\'s description.'
- markdown_field :description_html, null: true do |resolved_object|
- resolved_object.work_item
- end
+ markdown_field :description_html, null: true, &:work_item
end
# rubocop:enable Graphql/AuthorizeTypes
end