Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Fixed the typescript error in Layout

Vladyslav Matsiiakoc23be7773883
diff --git a/frontend/components/basic/Layout.tsx b/frontend/components/basic/Layout.tsx
index 4a40fdef08..9ba11a4362 100644
--- a/frontend/components/basic/Layout.tsx
+++ b/frontend/components/basic/Layout.tsx
@@ -67,7 +67,7 @@ export default function Layout({ children }: LayoutProps) {
try {
const workspaces = await getWorkspaces();
- const currentWorkspaces = workspaces.map((workspace) => workspace.name);
+ const currentWorkspaces = (workspaces as unknown as any[]).map((workspace: any) => workspace.name);
if (!currentWorkspaces.includes(workspaceName)) {
const newWorkspace = await createWorkspace({
workspaceName,