@mx-cartographer/experiences 4.2.0-alpha.sms2 → 4.2.0-alpha.sms3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +4 -4
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -14827,15 +14827,15 @@ class vm {
|
|
|
14827
14827
|
const {
|
|
14828
14828
|
accounts: a = [],
|
|
14829
14829
|
institutions: r = [],
|
|
14830
|
-
members
|
|
14831
|
-
updateExternallyManagedAccounts:
|
|
14830
|
+
// members = [],
|
|
14831
|
+
updateExternallyManagedAccounts: i
|
|
14832
14832
|
} = n;
|
|
14833
|
-
this.accounts = a, this.institutions = r, this.
|
|
14833
|
+
this.accounts = a, this.institutions = r, this.updateExternallyManagedAccounts = i, this.shouldManageDataExternally = !!a.length && !!r;
|
|
14834
14834
|
}
|
|
14835
14835
|
this.globalStore = A, this.uiStore = new fm(), De(this);
|
|
14836
14836
|
}
|
|
14837
14837
|
initialize = async (A, n) => {
|
|
14838
|
-
this.api = new Qr(A, n), this.shouldManageDataExternally
|
|
14838
|
+
this.api = new Qr(A, n), this.shouldManageDataExternally ? await this.loadMembers() : await Promise.all([this.loadAccounts(), this.loadInstitutions()]), oa(
|
|
14839
14839
|
() => this.accounts,
|
|
14840
14840
|
(a) => {
|
|
14841
14841
|
this.shouldManageDataExternally && (this.accounts = this.sortAccounts(this.augmentAccounts(a)), this.updateExternallyManagedAccounts?.(a));
|