Web: People: Fixed double init

This commit is contained in:
Alexey Safronov 2021-03-19 10:46:49 +03:00
parent 3b340396a7
commit 78140c0739

View File

@ -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);