mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 10:19:10 +08:00
fix: error page is updated (#1394)
This commit is contained in:
parent
a8c7237bbb
commit
3200248e98
@ -188,14 +188,14 @@ function AllErrors(): JSX.Element {
|
|||||||
sorter,
|
sorter,
|
||||||
) => {
|
) => {
|
||||||
if (!Array.isArray(sorter)) {
|
if (!Array.isArray(sorter)) {
|
||||||
const { current = 0, pageSize = 0 } = paginations;
|
const { pageSize = 0, current = 0 } = paginations;
|
||||||
const { columnKey = '', order } = sorter;
|
const { columnKey = '', order } = sorter;
|
||||||
const updatedOrder = order === 'ascend' ? 'ascending' : 'descending';
|
const updatedOrder = order === 'ascend' ? 'ascending' : 'descending';
|
||||||
|
|
||||||
history.replace(
|
history.replace(
|
||||||
`${pathname}?${createQueryParams({
|
`${pathname}?${createQueryParams({
|
||||||
order: updatedOrder,
|
order: updatedOrder,
|
||||||
offset: current - 1,
|
offset: (current - 1) * pageSize,
|
||||||
orderParam: columnKey,
|
orderParam: columnKey,
|
||||||
pageSize,
|
pageSize,
|
||||||
})}`,
|
})}`,
|
||||||
@ -213,7 +213,7 @@ function AllErrors(): JSX.Element {
|
|||||||
pagination={{
|
pagination={{
|
||||||
pageSize: getUpdatedPageSize,
|
pageSize: getUpdatedPageSize,
|
||||||
responsive: true,
|
responsive: true,
|
||||||
current: getUpdatedOffset + 1,
|
current: getUpdatedOffset / 10 + 1,
|
||||||
position: ['bottomLeft'],
|
position: ['bottomLeft'],
|
||||||
total: errorCountResponse.data?.payload || 0,
|
total: errorCountResponse.data?.payload || 0,
|
||||||
}}
|
}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user