diff --git a/src/gql/types/elements/Block.php b/src/gql/types/elements/Block.php index a9ef50c3..e45739ac 100644 --- a/src/gql/types/elements/Block.php +++ b/src/gql/types/elements/Block.php @@ -63,7 +63,13 @@ protected function resolve($source, $arguments, $context, ResolveInfo $resolveIn $children = $source->getDescendants()->level($sourceLevel)->all(); if(count($children) and is_array($children)) { - $newBlocks = $children; + + foreach ($children as $block) { + if ((int)$block->level === $sourceLevel) { + $newBlocks[] = $block; + } + } + // $newBlocks = $children; } }