mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 01:27:31 +00:00
Fixed the typescript error in Layout
This commit is contained in:
@@ -67,7 +67,7 @@ export default function Layout({ children }: LayoutProps) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const workspaces = await getWorkspaces();
|
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)) {
|
if (!currentWorkspaces.includes(workspaceName)) {
|
||||||
const newWorkspace = await createWorkspace({
|
const newWorkspace = await createWorkspace({
|
||||||
workspaceName,
|
workspaceName,
|
||||||
|
|||||||
Reference in New Issue
Block a user