fix: trace table is fixed (#1208)

This commit is contained in:
palash-signoz 2022-05-26 16:51:18 +05:30 committed by GitHub
parent d863c2781a
commit 38c0bcf4ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,7 @@ import {
UPDATE_SPANS_AGGREGATE_PAGE_SIZE,
} from 'types/actions/trace';
import { TraceReducer } from 'types/reducer/trace';
import { v4 } from 'uuid';
dayjs.extend(duration);
@ -131,8 +132,6 @@ function TraceTable(): JSX.Element {
const spanOrder = order === 'ascend' ? 'ascending' : 'descending';
const orderParam = getSortKey(sort.field as string);
console.log({ spanOrder });
dispatch({
type: UPDATE_SPAN_ORDER,
payload: {
@ -188,7 +187,7 @@ function TraceTable(): JSX.Element {
dataSource={spansAggregate.data}
loading={loading || filterLoading}
columns={columns}
rowKey={(record): string => `${record.traceID}-${record.spanID}`}
rowKey={(record): string => `${record.traceID}-${record.spanID}-${v4()}`}
style={{
cursor: 'pointer',
}}