diff --git a/packages/mern-sample-app/app-vite-react/src/app/pages/Home/UserForm.tsx b/packages/mern-sample-app/app-vite-react/src/app/pages/Home/UserForm.tsx index 4e721e34..ffc3ab8e 100644 --- a/packages/mern-sample-app/app-vite-react/src/app/pages/Home/UserForm.tsx +++ b/packages/mern-sample-app/app-vite-react/src/app/pages/Home/UserForm.tsx @@ -1,6 +1,6 @@ import React from "react"; import { TextField, Button, Box, Autocomplete, MenuItem, Chip } from "@mui/material"; -import type { User } from "@org/lib-api-client"; +import type { User, Role } from "@org/lib-api-client"; export type UserFormProps = { value: User; @@ -34,7 +34,7 @@ export function UserForm({ value, onChange, onSubmit }: UserFormProps) { id="tags-outlined" options={["admin", "user"]} getOptionLabel={option => option} - onChange={(_, newValue) => mutate({ roles: newValue })} + onChange={(_, newValue) => mutate({ roles: newValue as Role[] })} value={value.roles} disableCloseOnSelect filterSelectedOptions diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c5bca28b..89274cc5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5065,6 +5065,7 @@ packages: /ip-address@9.0.5: resolution: {integrity: sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==} engines: {node: '>= 12'} + requiresBuild: true dependencies: jsbn: 1.1.0 sprintf-js: 1.1.3 @@ -5701,6 +5702,7 @@ packages: /jsbn@1.1.0: resolution: {integrity: sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==} + requiresBuild: true /jsdom@25.0.0: resolution: {integrity: sha512-OhoFVT59T7aEq75TVw9xxEfkXgacpqAhQaYgP9y/fDqWQCMB/b1H66RfmPm/MaeaAIU9nDwMOVTlPN51+ao6CQ==} @@ -7555,6 +7557,7 @@ packages: /smart-buffer@4.2.0: resolution: {integrity: sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==} engines: {node: '>= 6.0.0', npm: '>= 3.0.0'} + requiresBuild: true /socks-proxy-agent@8.0.4: resolution: {integrity: sha512-GNAq/eg8Udq2x0eNiFkr9gRg5bA7PXEWagQdeRX4cPSG+X/8V38v637gim9bjFptMk1QWsCTr0ttrJEiXbNnRw==} @@ -7616,6 +7619,7 @@ packages: /sprintf-js@1.1.3: resolution: {integrity: sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==} + requiresBuild: true /stack-generator@2.0.10: resolution: {integrity: sha512-mwnua/hkqM6pF4k8SnmZ2zfETsRUpWXREfA/goT8SLCV4iOFa4bzOX2nDipWAZFPTjLvQB82f5yaodMVhK0yJQ==}