Skip to content

Commit a27bd1e

Browse files
author
Vishal
committed
Made getValue an arrow function, just to be consistent
1 parent c2fe534 commit a27bd1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/angular-sdk-components/src/lib/_components/field/user-reference/user-reference.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,12 @@ export class UserReferenceComponent implements OnInit, OnDestroy {
136136
return user.userName;
137137
};
138138

139-
getValue(user) {
139+
getValue = user => {
140140
if (this.displayAs$ === DROPDOWN_LIST) {
141141
return this.utils.getUserId(user) || this.getUserName(user);
142142
}
143143
return this.isUserNameAvailable(user) ? this.getUserName(user) : this.utils.getUserId(user);
144-
}
144+
};
145145

146146
async checkAndUpdate() {
147147
// Should always check the bridge to see if the component should

0 commit comments

Comments
 (0)