mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 14:28:20 +00:00
Fix workspace type
This commit is contained in:
@@ -6,7 +6,6 @@ interface Workspaces {
|
||||
name: string;
|
||||
organization: string;
|
||||
}
|
||||
[];
|
||||
|
||||
/**
|
||||
* This route lets us get the workspaces of a certain user
|
||||
@@ -20,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: Workspaces[] };
|
||||
return data.workspaces;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user