fix: getNanoTimestamp function and cache fix (#1737)

This commit is contained in:
Vishal Sharma 2022-11-22 13:13:10 +05:30 committed by GitHub
parent 87502baabf
commit 1273bb5865
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ export const getDefaultOrder = (
export const getNanoSeconds = (date: string): string => {
return (
Math.floor(new Date(date).getTime() / 1e3).toString() +
Timestamp.fromString(date).getNano().toString()
String(Timestamp.fromString(date).getNano().toString()).padStart(9, '0')
);
};

View File

@ -15,7 +15,7 @@ const breadcrumbNameMap = {
[ROUTES.VERSION]: 'Status',
[ROUTES.ORG_SETTINGS]: 'Organization Settings',
[ROUTES.MY_SETTINGS]: 'My Settings',
[ROUTES.ERROR_DETAIL]: 'Errors',
[ROUTES.ERROR_DETAIL]: 'Exceptions',
[ROUTES.LIST_ALL_ALERT]: 'Alerts',
[ROUTES.ALL_DASHBOARD]: 'Dashboard',
[ROUTES.LOGS]: 'Logs',

View File

@ -48,7 +48,7 @@ function ErrorDetails(): JSX.Element {
},
);
const { data, status } = useQuery([maxTime, minTime, groupId], {
const { data, status } = useQuery([maxTime, minTime, groupId, errorId], {
queryFn: () =>
getByErrorType({
groupID: groupId || '',