mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-26 04:04:29 +08:00
fix: getNanoTimestamp function and cache fix (#1737)
This commit is contained in:
parent
87502baabf
commit
1273bb5865
@ -77,7 +77,7 @@ export const getDefaultOrder = (
|
|||||||
export const getNanoSeconds = (date: string): string => {
|
export const getNanoSeconds = (date: string): string => {
|
||||||
return (
|
return (
|
||||||
Math.floor(new Date(date).getTime() / 1e3).toString() +
|
Math.floor(new Date(date).getTime() / 1e3).toString() +
|
||||||
Timestamp.fromString(date).getNano().toString()
|
String(Timestamp.fromString(date).getNano().toString()).padStart(9, '0')
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ const breadcrumbNameMap = {
|
|||||||
[ROUTES.VERSION]: 'Status',
|
[ROUTES.VERSION]: 'Status',
|
||||||
[ROUTES.ORG_SETTINGS]: 'Organization Settings',
|
[ROUTES.ORG_SETTINGS]: 'Organization Settings',
|
||||||
[ROUTES.MY_SETTINGS]: 'My Settings',
|
[ROUTES.MY_SETTINGS]: 'My Settings',
|
||||||
[ROUTES.ERROR_DETAIL]: 'Errors',
|
[ROUTES.ERROR_DETAIL]: 'Exceptions',
|
||||||
[ROUTES.LIST_ALL_ALERT]: 'Alerts',
|
[ROUTES.LIST_ALL_ALERT]: 'Alerts',
|
||||||
[ROUTES.ALL_DASHBOARD]: 'Dashboard',
|
[ROUTES.ALL_DASHBOARD]: 'Dashboard',
|
||||||
[ROUTES.LOGS]: 'Logs',
|
[ROUTES.LOGS]: 'Logs',
|
||||||
|
@ -48,7 +48,7 @@ function ErrorDetails(): JSX.Element {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
const { data, status } = useQuery([maxTime, minTime, groupId], {
|
const { data, status } = useQuery([maxTime, minTime, groupId, errorId], {
|
||||||
queryFn: () =>
|
queryFn: () =>
|
||||||
getByErrorType({
|
getByErrorType({
|
||||||
groupID: groupId || '',
|
groupID: groupId || '',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user