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/hierarchy_type.rb')
-rw-r--r--app/graphql/types/work_items/widgets/hierarchy_type.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/graphql/types/work_items/widgets/hierarchy_type.rb b/app/graphql/types/work_items/widgets/hierarchy_type.rb
index 057d5fbf056..0ccd8af7dc8 100644
--- a/app/graphql/types/work_items/widgets/hierarchy_type.rb
+++ b/app/graphql/types/work_items/widgets/hierarchy_type.rb
@@ -12,13 +12,13 @@ module Types
implements Types::WorkItems::WidgetInterface
- field :parent, ::Types::WorkItemType, null: true,
- description: 'Parent work item.',
- complexity: 5
+ field :parent, ::Types::WorkItemType,
+ null: true, complexity: 5,
+ description: 'Parent work item.'
- field :children, ::Types::WorkItemType.connection_type, null: true,
- description: 'Child work items.',
- complexity: 5
+ field :children, ::Types::WorkItemType.connection_type,
+ null: true, complexity: 5,
+ description: 'Child work items.'
def children
object.children.inc_relations_for_permission_check