mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 22:27:48 +00:00
fix(admin): stop returning auth method on table
This commit is contained in:
@@ -170,7 +170,6 @@ export const registerAdminRouter = async (server: FastifyZodProvider) => {
|
|||||||
200: z.object({
|
200: z.object({
|
||||||
identities: IdentitiesSchema.pick({
|
identities: IdentitiesSchema.pick({
|
||||||
name: true,
|
name: true,
|
||||||
authMethod: true,
|
|
||||||
id: true
|
id: true
|
||||||
}).array()
|
}).array()
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -47,20 +47,16 @@ const IdentityPanelTable = () => {
|
|||||||
<Table>
|
<Table>
|
||||||
<THead>
|
<THead>
|
||||||
<Tr>
|
<Tr>
|
||||||
<Th className="w-1/2">Name</Th>
|
<Th>Name</Th>
|
||||||
<Th className="w-1/2">Auth Method</Th>
|
|
||||||
</Tr>
|
</Tr>
|
||||||
</THead>
|
</THead>
|
||||||
<TBody>
|
<TBody>
|
||||||
{isPending && <TableSkeleton columns={2} innerKey="identities" />}
|
{isPending && <TableSkeleton columns={2} innerKey="identities" />}
|
||||||
{!isPending &&
|
{!isPending &&
|
||||||
data?.pages?.map((identities) =>
|
data?.pages?.map((identities) =>
|
||||||
identities.map(({ name, authMethod, id }) => (
|
identities.map(({ name, id }) => (
|
||||||
<Tr key={`identity-${id}`} className="w-full">
|
<Tr key={`identity-${id}`} className="w-full">
|
||||||
<Td className="w-1/2">{name}</Td>
|
<Td>{name}</Td>
|
||||||
<Td className="w-1/2">
|
|
||||||
{authMethod || <span className={"italic text-mineshaft-400"}>None</span>}
|
|
||||||
</Td>
|
|
||||||
</Tr>
|
</Tr>
|
||||||
))
|
))
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user