Browse Source
Merge pull request #3648 from abpframework/fix/config-plugin
Fixed if condition in config plugin
pull/3651/head
Mehmet Erim
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
npm/ng-packs/packages/core/src/lib/plugins/config.plugin.ts
|
|
|
@ -28,7 +28,7 @@ export class ConfigPlugin implements NgxsPlugin { |
|
|
|
const matches = actionMatcher(event); |
|
|
|
const isInitAction = matches(InitState) || matches(UpdateState); |
|
|
|
|
|
|
|
if (isInitAction && !this.initialized && getAbpRoutes().length) { |
|
|
|
if (isInitAction && !this.initialized) { |
|
|
|
const transformedRoutes = transformRoutes(this.router.config); |
|
|
|
let { routes } = transformedRoutes; |
|
|
|
const { wrappers } = transformedRoutes; |
|
|
|
|