From b1f2515731b4df16b31c08a93597042fbb63563e Mon Sep 17 00:00:00 2001 From: Vladyslav Matsiiako Date: Thu, 4 May 2023 15:31:06 -0700 Subject: [PATCH] fixed minor bugs and updated the design --- frontend/src/reactQuery.ts | 3 ++- frontend/src/views/DashboardPage/DashboardEnvOverview.tsx | 4 ++-- .../components/EnvComparisonRow/EnvComparisonRow.tsx | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/frontend/src/reactQuery.ts b/frontend/src/reactQuery.ts index d65baa27f..94616dd3f 100644 --- a/frontend/src/reactQuery.ts +++ b/frontend/src/reactQuery.ts @@ -9,7 +9,8 @@ export const queryClient = new QueryClient({ defaultOptions: { queries: { refetchOnWindowFocus: false, - retry: 1 + retry: 1, + cacheTime: 1200000 } } }); diff --git a/frontend/src/views/DashboardPage/DashboardEnvOverview.tsx b/frontend/src/views/DashboardPage/DashboardEnvOverview.tsx index da0037ea8..0843810f7 100644 --- a/frontend/src/views/DashboardPage/DashboardEnvOverview.tsx +++ b/frontend/src/views/DashboardPage/DashboardEnvOverview.tsx @@ -161,11 +161,11 @@ export const DashboardEnvOverview = ({ onEnvChange }: { onEnvChange: any }) => {
{!isDashboardSecretEmpty && ( - +
{Object.keys(secrets?.secrets || {}).map((key, index) => ( { const syntaxHighlight = useCallback((val: string) => { - if (!val) + if (val === undefined) return ( missing ); @@ -60,7 +60,7 @@ const DashboardInput = ({ +
@@ -122,7 +122,7 @@ export const EnvComparisonRow = ({ ); return ( -
{index + 1}