|
@@ -169,7 +169,7 @@ const StaffDrawer: React.FC<StaffModalProps> = ({
|
|
|
disabled: hiddenOrganization,
|
|
|
hidden: !institutionID
|
|
|
})
|
|
|
- if (type === ModalType.UPDATE || type === ModalType.PREVIEW) {
|
|
|
+ if (hiddenOrganization && (type === ModalType.UPDATE || type === ModalType.PREVIEW)) {
|
|
|
form.setSchemaByPath('password', {
|
|
|
hidden: true
|
|
|
})
|