Update default-users-form-props.ts

pull/17518/head
Masum ULU 2 years ago committed by GitHub
parent 472485317f
commit 9523b2dade
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -76,8 +76,8 @@ export const DEFAULT_USERS_EDIT_FORM_PROPS = DEFAULT_USERS_CREATE_FORM_PROPS.map
...prop,
visible: data => {
const configState = data.getInjected(ConfigStateService);
const currentUser = configState.getOne('currentUser') as CurrentUserDto;
return currentUser.id !== data.record.id;
const currentUserId = configState.getDeep('currentUser.id');
return currentUserId !== data.record.id;
},
};
}

Loading…
Cancel
Save