Web: People: Fixed double init
This commit is contained in:
parent
3b340396a7
commit
78140c0739
@ -30,6 +30,7 @@ class PeopleStore {
|
||||
|
||||
isLoading = false;
|
||||
isLoaded = false;
|
||||
isInit = false;
|
||||
|
||||
constructor() {
|
||||
this.groupsStore = new GroupsStore(this);
|
||||
@ -63,6 +64,9 @@ class PeopleStore {
|
||||
}
|
||||
|
||||
init = async () => {
|
||||
if (this.isInit) return;
|
||||
this.isInit = true;
|
||||
|
||||
const re = new RegExp(`${config.homepage}((/?)$|/filter)`, "gm");
|
||||
const match = window.location.pathname.match(re);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user