fix issue with editing users without 'name'
This commit is contained in:
parent
281a0ed4e7
commit
7ff79db6af
4 changed files with 15 additions and 8 deletions
|
|
@ -116,11 +116,18 @@ export const UserModal = ({ open, onClose, userId, setUserId }: UserModalProps)
|
|||
|
||||
<div className="mt-6 grid grid-cols-1 gap-y-6 gap-x-4 sm:grid-cols-6">
|
||||
<div className="sm:col-span-3">
|
||||
<Input control={control} name="name" label="Name" onKeyPress={handleKeyPress} />
|
||||
<Input control={control} name="name" label="Name" onKeyPress={handleKeyPress} required={false} />
|
||||
</div>
|
||||
|
||||
<div className="sm:col-span-3">
|
||||
<Input control={control} name="email" label="Email" type="email" onKeyPress={handleKeyPress} />
|
||||
<Input
|
||||
control={control}
|
||||
name="email"
|
||||
label="Email"
|
||||
type="email"
|
||||
onKeyPress={handleKeyPress}
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
{isAdmin && (
|
||||
<>
|
||||
|
|
|
|||
Reference in a new issue