Remove duplicated getRoleDescription function (#866)
This commit is contained in:
parent
2f920c63e5
commit
661e9eac01
|
@ -139,14 +139,6 @@ export default class RoomInfoView extends LoggedView {
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
|
||||||
getRoleDescription = (id) => {
|
|
||||||
const role = database.objectForPrimaryKey('roles', id);
|
|
||||||
if (role) {
|
|
||||||
return role.description;
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
renderRole = (role) => {
|
renderRole = (role) => {
|
||||||
const description = this.getRoleDescription(role);
|
const description = this.getRoleDescription(role);
|
||||||
if (description) {
|
if (description) {
|
||||||
|
|
Loading…
Reference in New Issue