|
@@ -166,9 +166,11 @@ const StaffDrawer: React.FC<StaffModalProps> = ({
|
|
|
form.setSchemaByPath('organizationalStructureID', {
|
|
|
disabled: hiddenOrganization
|
|
|
})
|
|
|
- form.setSchemaByPath('password', {
|
|
|
- hidden: true
|
|
|
- })
|
|
|
+ if (type === ModalType.UPDATE || type === ModalType.PREVIEW) {
|
|
|
+ form.setSchemaByPath('password', {
|
|
|
+ hidden: true
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
const watch = {
|