From 670f032a1a49a769b8f53f00e864a1b4b4d7995e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Ka=C5=88ka?= Date: Thu, 31 Oct 2024 15:57:03 +0100 Subject: [PATCH] [Enhancement kbss-cvut/termit-ui#520] Fix vocabulary content history not showing pagination in activity tab when no records are available --- src/component/vocabulary/TermChangeFrequencyUI.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/component/vocabulary/TermChangeFrequencyUI.tsx b/src/component/vocabulary/TermChangeFrequencyUI.tsx index 785d0aa2..e5468669 100644 --- a/src/component/vocabulary/TermChangeFrequencyUI.tsx +++ b/src/component/vocabulary/TermChangeFrequencyUI.tsx @@ -100,7 +100,7 @@ const TermChangeFrequencyUI: React.FC = ({ }); }, [filterAuthor, filterTerm, filterType, filterAttribute]); - if (!aggregatedRecords || !changeRecords) { + if (!aggregatedRecords) { return
 
; } @@ -239,7 +239,7 @@ const TermChangeFrequencyUI: React.FC = ({ - {changeRecords.map((r) => { + {changeRecords?.map((r) => { if (r instanceof PersistRecord) { return ; } @@ -254,7 +254,7 @@ const TermChangeFrequencyUI: React.FC = ({ - 0}> + 0}>