From 11441cc02fc3491abc23ee4d89ea1c72999ce744 Mon Sep 17 00:00:00 2001 From: Ketan <73937490+devketanpro@users.noreply.github.com> Date: Tue, 9 Apr 2024 14:40:59 +0530 Subject: [PATCH] Fix: render related item in assignment preview (#1959) --- client/components/fields/preview/RelatedArticles.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/components/fields/preview/RelatedArticles.tsx b/client/components/fields/preview/RelatedArticles.tsx index bf435c79c..1e5d13837 100644 --- a/client/components/fields/preview/RelatedArticles.tsx +++ b/client/components/fields/preview/RelatedArticles.tsx @@ -27,7 +27,7 @@ export function PreviewFieldRelatedArticles({item, languageFilter}: IProps) { {gettext('No related articles')} ) : ( - item.related_items.map((relatedItem) => ( + relatedItems.map((relatedItem) => (