mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
fix run build
This commit is contained in:
parent
d905c8ea5e
commit
072a01a359
1 changed files with 2 additions and 2 deletions
|
|
@ -136,7 +136,7 @@ export function UsersPermissionsCard({ portfolioId }: { portfolioId: string }) {
|
|||
|
||||
// ADD: mutation for inviting a user
|
||||
const inviteUserMutation = useMutation({
|
||||
mutationFn: ({ email, role, name }: { email: string; role: Role; name: string | null }) =>
|
||||
mutationFn: ({ email, role, name }: { email: string; role: Role; name: string }) =>
|
||||
invitePortfolioUser(portfolioId, email, role, name),
|
||||
onSuccess: () => {
|
||||
queryClient.invalidateQueries({ queryKey: ["portfolioUsers", portfolioId] });
|
||||
|
|
@ -151,7 +151,7 @@ export function UsersPermissionsCard({ portfolioId }: { portfolioId: string }) {
|
|||
|
||||
|
||||
function handleInvite() {
|
||||
inviteUserMutation.mutate({ email: inviteEmail, role: inviteRole, name: inviteName || null });
|
||||
inviteUserMutation.mutate({ email: inviteEmail, role: inviteRole, name: inviteName });
|
||||
}
|
||||
|
||||
function onChangeRole(portfolioUserId: string, role: Role) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue