fix(admin): stop returning auth method on table

This commit is contained in:
Mahyar Mirrashed
2025-03-11 14:30:04 -07:00
parent 627e17b3ae
commit 1a06b3e1f5
2 changed files with 3 additions and 8 deletions
@@ -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>
)) ))
)} )}