Common: SettingsStore: fix mobx warning
This commit is contained in:
parent
6d6f42134a
commit
874c034ff6
@ -548,9 +548,13 @@ class SettingsStore {
|
|||||||
this.currentProductId = currentProductId;
|
this.currentProductId = currentProductId;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
setPortalOwner = (owner) => {
|
||||||
|
this.owner = owner;
|
||||||
|
};
|
||||||
|
|
||||||
getPortalOwner = async () => {
|
getPortalOwner = async () => {
|
||||||
const owner = await api.people.getUserById(this.ownerId);
|
const owner = await api.people.getUserById(this.ownerId);
|
||||||
this.owner = owner;
|
this.setPortalOwner(owner);
|
||||||
return owner;
|
return owner;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user