gant-core 0.1.42 → 0.1.43

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/lib/index.d.ts CHANGED
@@ -1927,6 +1927,7 @@ interface ServerMenu {
1927
1927
  leaf?: boolean;
1928
1928
  children?: ServerMenu[];
1929
1929
  seqNum?: number;
1930
+ hide?: boolean;
1930
1931
  }
1931
1932
  type ServerMenuData = ServerMenu[];
1932
1933
  type ServerMenuMap = {
package/lib/index.js CHANGED
@@ -1189,7 +1189,7 @@ class GlobalStoreClass {
1189
1189
  const { user: currentUser, startMenus, isSuperAdmin, ...restInfo } = res;
1190
1190
  this.userStore.setUserAggregateInfo({ ...restInfo, currentUser });
1191
1191
  this.isSuperAdmin = isSuperAdmin;
1192
- const localeMenus = typeof menus == "function" ? menus(res) : menus;
1192
+ const localeMenus = typeof menus == "function" ? await menus(res) : menus;
1193
1193
  this.menuStore.init(isEmpty(localeMenus) ? startMenus : localeMenus, currentUser.id);
1194
1194
  };
1195
1195
  init = async (options) => {