Skip to content

Commit b4ea6b9

Browse files
committed
387-Test coverage of getting IDs of CMS page/blocks by GraphQL API
1 parent fed22e0 commit b4ea6b9

File tree

1 file changed

+1
-5
lines changed
  • app/code/Magento/CmsGraphQl/Model/Resolver/DataProvider

1 file changed

+1
-5
lines changed

app/code/Magento/CmsGraphQl/Model/Resolver/DataProvider/Page.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,7 @@ public function __construct(
7272
public function getData(int $pageId): array
7373
{
7474
$page = $this->pageRepository->getById($pageId);
75-
76-
if (false === $page->isActive()) {
77-
throw new NoSuchEntityException();
78-
}
79-
75+
8076
return $this->convertPageData($page);
8177
}
8278

0 commit comments

Comments
 (0)