mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +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({
|
||||
identities: IdentitiesSchema.pick({
|
||||
name: true,
|
||||
authMethod: true,
|
||||
id: true
|
||||
}).array()
|
||||
})
|
||||
|
||||
@@ -47,20 +47,16 @@ const IdentityPanelTable = () => {
|
||||
<Table>
|
||||
<THead>
|
||||
<Tr>
|
||||
<Th className="w-1/2">Name</Th>
|
||||
<Th className="w-1/2">Auth Method</Th>
|
||||
<Th>Name</Th>
|
||||
</Tr>
|
||||
</THead>
|
||||
<TBody>
|
||||
{isPending && <TableSkeleton columns={2} innerKey="identities" />}
|
||||
{!isPending &&
|
||||
data?.pages?.map((identities) =>
|
||||
identities.map(({ name, authMethod, id }) => (
|
||||
identities.map(({ name, id }) => (
|
||||
<Tr key={`identity-${id}`} className="w-full">
|
||||
<Td className="w-1/2">{name}</Td>
|
||||
<Td className="w-1/2">
|
||||
{authMethod || <span className={"italic text-mineshaft-400"}>None</span>}
|
||||
</Td>
|
||||
<Td>{name}</Td>
|
||||
</Tr>
|
||||
))
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user