mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 04:26:02 +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(
|
const handleEndReached = useCallback(
|
||||||
(index: number) => {
|
(index: number) => {
|
||||||
if (isLimit) return;
|
if (isLimit) return;
|
||||||
|
if (logs.length < pageSize) return;
|
||||||
|
|
||||||
const lastLog = logs[index];
|
const lastLog = logs[index];
|
||||||
|
|
||||||
@ -368,7 +369,7 @@ function LogsExplorerViews(): JSX.Element {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const shouldChangeView = isMultipleQueries || isGroupByExist;
|
const shouldChangeView = isMultipleQueries || isGroupByExist;
|
||||||
|
|
||||||
if (panelType === 'list' && shouldChangeView) {
|
if (panelType === PANEL_TYPES.LIST && shouldChangeView) {
|
||||||
handleChangeView(PANEL_TYPES.TIME_SERIES);
|
handleChangeView(PANEL_TYPES.TIME_SERIES);
|
||||||
}
|
}
|
||||||
}, [panelType, isMultipleQueries, isGroupByExist, handleChangeView]);
|
}, [panelType, isMultipleQueries, isGroupByExist, handleChangeView]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user