Skip to content

Commit

Permalink
Merge pull request #1254 from UN-OCHA/berliner/HPC-9962
Browse files Browse the repository at this point in the history
HPC-9962: Expect articles referenced in CM exports might not have been imported into HA yet, cope with it
  • Loading branch information
berliner authored Dec 12, 2024
2 parents 3773703 + a8ce527 commit c7d5a8b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ private function getChapterArticles() {
$chapter = $this->getChapter();
$articles = $chapter ? array_filter(array_map(function (RemoteArticleInterface $article) {
$article_node = $this->articleManager->loadNodeForRemoteContent($article);
return $article_node->access('view') ? $article_node : NULL;
return $article_node?->access('view') ? $article_node : NULL;
}, $chapter->getArticles())) : [];
return $articles;
}
Expand Down

0 comments on commit c7d5a8b

Please sign in to comment.