forked from mystiq/hydrogen-web
Don't cache powerlevel value
Co-authored-by: Bruno Windels <bruno@windels.cloud>
This commit is contained in:
parent
49be4e64ca
commit
974d9bf199
1 changed files with 1 additions and 5 deletions
|
@ -76,11 +76,7 @@ export class MemberDetailsViewModel extends ViewModel {
|
|||
}
|
||||
|
||||
get powerLevel() {
|
||||
if (!this._powerLevel) {
|
||||
const powerLevels = this._powerLevelsObservable.get();
|
||||
this._powerLevel = powerLevels.getUserLevel(this._member.userId);
|
||||
}
|
||||
return this._powerLevel;
|
||||
return this._powerLevelsObservable.get()?.getUserLevel(this._member.userId);
|
||||
}
|
||||
|
||||
get linkToUser() {
|
||||
|
|
Loading…
Reference in a new issue