mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 20:49:00 +08:00
fix: list pagination (#3121)
This commit is contained in:
parent
10ffbf7d81
commit
538261aa99
@ -271,6 +271,7 @@ function LogsExplorerViews(): JSX.Element {
|
||||
const handleEndReached = useCallback(
|
||||
(index: number) => {
|
||||
if (isLimit) return;
|
||||
if (logs.length < pageSize) return;
|
||||
|
||||
const lastLog = logs[index];
|
||||
|
||||
@ -368,7 +369,7 @@ function LogsExplorerViews(): JSX.Element {
|
||||
useEffect(() => {
|
||||
const shouldChangeView = isMultipleQueries || isGroupByExist;
|
||||
|
||||
if (panelType === 'list' && shouldChangeView) {
|
||||
if (panelType === PANEL_TYPES.LIST && shouldChangeView) {
|
||||
handleChangeView(PANEL_TYPES.TIME_SERIES);
|
||||
}
|
||||
}, [panelType, isMultipleQueries, isGroupByExist, handleChangeView]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user