From 1273bb5865f33202cb7b33a06d85236a49fde2b5 Mon Sep 17 00:00:00 2001 From: Vishal Sharma Date: Tue, 22 Nov 2022 13:13:10 +0530 Subject: [PATCH] fix: getNanoTimestamp function and cache fix (#1737) --- frontend/src/container/AllError/utils.ts | 2 +- frontend/src/container/TopNav/Breadcrumbs/index.tsx | 2 +- frontend/src/pages/ErrorDetails/index.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/container/AllError/utils.ts b/frontend/src/container/AllError/utils.ts index 239d404b1c..aae242ffa0 100644 --- a/frontend/src/container/AllError/utils.ts +++ b/frontend/src/container/AllError/utils.ts @@ -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') ); }; diff --git a/frontend/src/container/TopNav/Breadcrumbs/index.tsx b/frontend/src/container/TopNav/Breadcrumbs/index.tsx index bc839d407c..a4ada700d5 100644 --- a/frontend/src/container/TopNav/Breadcrumbs/index.tsx +++ b/frontend/src/container/TopNav/Breadcrumbs/index.tsx @@ -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', diff --git a/frontend/src/pages/ErrorDetails/index.tsx b/frontend/src/pages/ErrorDetails/index.tsx index 348391b741..94bd8e248e 100644 --- a/frontend/src/pages/ErrorDetails/index.tsx +++ b/frontend/src/pages/ErrorDetails/index.tsx @@ -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 || '',