Skip to content

Commit

Permalink
Add changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
DonOmalVindula committed Sep 5, 2024
1 parent 96e82e7 commit 0d88f81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/eleven-suns-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/admin.logs.v1": patch
---

Fix bugs in the infinite scrolling mechanism in logs section
2 changes: 1 addition & 1 deletion features/admin.logs.v1/pages/diagnostic-logs-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const DiagnosticLogsPage = (props: DiagnosticPagePropsInterface) : ReactElement

useEffect (() => {
if (!loading && list.length > 0) {
setDiagnosticLogList([ ...diagnosticLogList, ...list ]);
setDiagnosticLogList((previousLogs: InterfaceLogEntry[]) => [ ...previousLogs, ...list ]);
}
}, [ list, loading ]);

Expand Down

0 comments on commit 0d88f81

Please sign in to comment.