mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-29 19:12:02 +08:00
fix: trace table is fixed (#1208)
This commit is contained in:
parent
d863c2781a
commit
38c0bcf4ea
@ -18,6 +18,7 @@ import {
|
|||||||
UPDATE_SPANS_AGGREGATE_PAGE_SIZE,
|
UPDATE_SPANS_AGGREGATE_PAGE_SIZE,
|
||||||
} from 'types/actions/trace';
|
} from 'types/actions/trace';
|
||||||
import { TraceReducer } from 'types/reducer/trace';
|
import { TraceReducer } from 'types/reducer/trace';
|
||||||
|
import { v4 } from 'uuid';
|
||||||
|
|
||||||
dayjs.extend(duration);
|
dayjs.extend(duration);
|
||||||
|
|
||||||
@ -131,8 +132,6 @@ function TraceTable(): JSX.Element {
|
|||||||
const spanOrder = order === 'ascend' ? 'ascending' : 'descending';
|
const spanOrder = order === 'ascend' ? 'ascending' : 'descending';
|
||||||
const orderParam = getSortKey(sort.field as string);
|
const orderParam = getSortKey(sort.field as string);
|
||||||
|
|
||||||
console.log({ spanOrder });
|
|
||||||
|
|
||||||
dispatch({
|
dispatch({
|
||||||
type: UPDATE_SPAN_ORDER,
|
type: UPDATE_SPAN_ORDER,
|
||||||
payload: {
|
payload: {
|
||||||
@ -188,7 +187,7 @@ function TraceTable(): JSX.Element {
|
|||||||
dataSource={spansAggregate.data}
|
dataSource={spansAggregate.data}
|
||||||
loading={loading || filterLoading}
|
loading={loading || filterLoading}
|
||||||
columns={columns}
|
columns={columns}
|
||||||
rowKey={(record): string => `${record.traceID}-${record.spanID}`}
|
rowKey={(record): string => `${record.traceID}-${record.spanID}-${v4()}`}
|
||||||
style={{
|
style={{
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
}}
|
}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user