Skip to content

Commit

Permalink
Fix error for POA on Feature Articles
Browse files Browse the repository at this point in the history
  • Loading branch information
discodavey committed Dec 17, 2024
1 parent a9e17fc commit f3a87bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controller/ArticlesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ private function createFirstPage(Request $request, string $id, array $arguments)
);
}

if ($item->getType() === 'feature' && $item->getDecisionLetter()) {
if ($item->getType() === 'feature' && $item instanceof ArticleVoR && $item->getDecisionLetter()) {
$parts[] = ArticleSection::collapsible(
$item->getDecisionLetter()->getId() ?? 'decision-letter',
'Decision letter',
Expand All @@ -431,7 +431,7 @@ private function createFirstPage(Request $request, string $id, array $arguments)
$first = false;
}

if ($item->getType() === 'feature' && $item->getAuthorResponse()) {
if ($item->getType() === 'feature'&& $item instanceof ArticleVoR && $item->getAuthorResponse()) {
$parts[] = ArticleSection::collapsible(
$item->getAuthorResponse()->getId() ?? 'author-response',
'Author response',
Expand Down

0 comments on commit f3a87bc

Please sign in to comment.