From ea53e7ce48feb7747197540a6fcb75f9d8948d8d Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Fri, 15 Nov 2024 15:08:44 +0100 Subject: [PATCH] fix(ui): notes list pagination --- .../SessionsTabOverview/components/Notes/NoteList.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/app/components/shared/SessionsTabOverview/components/Notes/NoteList.tsx b/frontend/app/components/shared/SessionsTabOverview/components/Notes/NoteList.tsx index 0cae90242..20c3522ce 100644 --- a/frontend/app/components/shared/SessionsTabOverview/components/Notes/NoteList.tsx +++ b/frontend/app/components/shared/SessionsTabOverview/components/Notes/NoteList.tsx @@ -10,8 +10,8 @@ function NotesList() { const { notesStore } = useStore(); React.useEffect(() => { - notesStore.fetchNotes(); - }, []); + void notesStore.fetchNotes(); + }, [notesStore.page]); const list = notesStore.notes; @@ -33,7 +33,7 @@ function NotesList() { } >
- {sliceListPerPage(list, notesStore.page - 1, notesStore.pageSize).map((note) => ( + {list.map((note) => (