Browse Source

fix(core): condition bug

resolves #3886
pull/3896/head
mehmet-erim 6 years ago
parent
commit
dafe19fa1e
  1. 2
      npm/ng-packs/packages/core/src/lib/states/config.state.ts

2
npm/ng-packs/packages/core/src/lib/states/config.state.ts

@ -324,7 +324,7 @@ function patchRouteDeep(
): ABP.FullRoute[] {
routes = routes.map(route => {
if (route.name === name) {
newValue.url = `${parentUrl}/${(!newValue.path && newValue.path === ''
newValue.url = `${parentUrl}/${(!newValue.path || newValue.path === ''
? route.path
: newValue.path) || ''}`;

Loading…
Cancel
Save