Skip to content

Commit

Permalink
Merge pull request #1289 from Shelf-nu/fix-bug-rendering-team-users-page
Browse files Browse the repository at this point in the history
fix: bug rendering team users page
  • Loading branch information
DonKoko authored Aug 30, 2024
2 parents ac75876 + 74220fb commit 8bfcf75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/modules/settings/service.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export async function getPaginatedAndFilterableSettingUsers({
role: organizationRolesMap[um.roles[0]],
userId: um.user.id,
sso: um.user.sso,
custodies: um.user.teamMembers[0]._count.custodies,
custodies: um?.user?.teamMembers?.[0]?._count?.custodies || 0,
}));

/**
Expand Down
2 changes: 1 addition & 1 deletion app/routes/_layout+/admin-dashboard+/$userId.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
type CustomTierLimit,
} from "@prisma/client";
import type { ActionFunctionArgs, LoaderFunctionArgs } from "@remix-run/node";
import { json, redirect } from "@remix-run/node";
import { json } from "@remix-run/node";
import { useLoaderData, Link, useFetcher } from "@remix-run/react";

import { z } from "zod";
Expand Down

0 comments on commit 8bfcf75

Please sign in to comment.