Fix workspace type

This commit is contained in:
Reginald Bondoc
2022-12-07 22:20:25 +01:00
parent 112fc77a06
commit d99e21a91b
2 changed files with 2 additions and 3 deletions

View File

@@ -67,7 +67,7 @@ export default function Layout({ children }: LayoutProps) {
try {
const workspaces = await getWorkspaces();
const currentWorkspaces = (workspaces as unknown as any[]).map((workspace: any) => workspace.name);
const currentWorkspaces = workspaces.map((workspace) => workspace.name);
if (!currentWorkspaces.includes(workspaceName)) {
const newWorkspace = await createWorkspace({
workspaceName,