Skip to content

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

Change name

Reginald Bondoc1212b5a9dbfb
diff --git a/frontend/pages/api/workspace/getWorkspaces.ts b/frontend/pages/api/workspace/getWorkspaces.ts
index 01e38b83d0..a77a04751b 100644
--- a/frontend/pages/api/workspace/getWorkspaces.ts
+++ b/frontend/pages/api/workspace/getWorkspaces.ts
@@ -1,6 +1,6 @@
import SecurityClient from "~/utilities/SecurityClient";
-interface Workspaces {
+interface Workspace {
__v: number;
_id: string;
name: string;
@@ -19,7 +19,7 @@ const getWorkspaces = () => {
},
}).then(async (res) => {
if (res?.status == 200) {
- const data = (await res.json()) as unknown as { workspaces: Workspaces[] };
+ const data = (await res.json()) as unknown as { workspaces: Workspace[] };
return data.workspaces;
}