Skip to content

Commit 9afdb52

Browse files
committed
Store 'e' is not available error fixed for production build
1 parent 2e55b24 commit 9afdb52

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

reactjs/src/stores/storeIdentifier.ts

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
1-
import RoleStore from './roleStore';
2-
import TenantStore from './tenantStore';
3-
import UserStore from './userStore';
4-
import SessionStore from './sessionStore';
5-
import AuthenticationStore from './authenticationStore';
6-
import AccountStore from './accountStore';
7-
81
export default class Stores {
9-
static AuthenticationStore: string = getName(AuthenticationStore);
10-
static RoleStore: string = getName(RoleStore);
11-
static TenantStore: string = getName(TenantStore);
12-
static UserStore: string = getName(UserStore);
13-
static SessionStore: string = getName(SessionStore);
14-
static AccountStore: string = getName(AccountStore);
15-
}
16-
17-
function getName(store: any): string {
18-
return abp.utils.toCamelCase(store.name);
2+
static AuthenticationStore: string = 'authenticationStore';
3+
static RoleStore: string = 'roleStore';
4+
static TenantStore: string = 'tenantStore';
5+
static UserStore: string = 'userStore';
6+
static SessionStore: string = 'sessionStore';
7+
static AccountStore: string = 'accountStore';
198
}

0 commit comments

Comments
 (0)