From 072254f20c05fe0f2b2d099787e0562dc806394a Mon Sep 17 00:00:00 2001 From: rajdip-b Date: Thu, 5 Sep 2024 13:20:23 +0530 Subject: [PATCH] chore(platform): Added strict null check --- .../src/app/(main)/project/[project]/@secret/page.tsx | 2 +- apps/platform/src/app/(main)/project/[project]/layout.tsx | 2 +- apps/platform/src/app/auth/invite/page.tsx | 6 +++--- apps/platform/src/components/shared/navbar/index.tsx | 2 +- .../src/components/shared/sidebar/sidebarTab/index.tsx | 6 +----- apps/platform/src/components/ui/line-tab.tsx | 2 +- apps/platform/src/env.ts | 2 +- apps/platform/src/middleware.ts | 2 +- apps/platform/tsconfig.json | 5 +++-- 9 files changed, 13 insertions(+), 16 deletions(-) diff --git a/apps/platform/src/app/(main)/project/[project]/@secret/page.tsx b/apps/platform/src/app/(main)/project/[project]/@secret/page.tsx index 8919cbf7..fca52e8e 100644 --- a/apps/platform/src/app/(main)/project/[project]/@secret/page.tsx +++ b/apps/platform/src/app/(main)/project/[project]/@secret/page.tsx @@ -53,7 +53,7 @@ function SecretPage(): React.JSX.Element { collapsible type="single" > - {allSecrets?.map((secret) => { + {allSecrets.map((secret) => { return (
-
{currentProject?.name}
+
{currentProject.name}