Make sure the nav item has children before trying to get them

+ Added LICENSE file
+ Renamed the KnowledgeBase demo module
This commit is contained in:
Sercan Yemen 2017-12-08 09:34:30 +03:00
parent 6ae0a9760d
commit 5c2e717a40
4 changed files with 8 additions and 4 deletions

1
LICENSE Normal file
View File

@ -0,0 +1 @@
https://themeforest.net/licenses/terms/regular

View File

@ -178,10 +178,13 @@ export class FuseNavigationService
}
if ( navItem.type === 'collapse' || navItem.type === 'group' )
{
if ( navItem.children )
{
this.getFlatNavigation(navItem.children);
}
}
}
return this.flatNavigation;
}

View File

@ -31,6 +31,6 @@ const routes = [
FuseKnowledgeBaseArticleComponent
]
})
export class FuseKnowledgeBaseModule
export class KnowledgeBaseModule
{
}

View File

@ -20,7 +20,7 @@ import { PricingModule } from './pricing/pricing.module';
import { ProfileModule } from './profile/profile.module';
import { SearchModule } from './search/search.module';
import { FaqModule } from './faq/faq.module';
import { FuseKnowledgeBaseModule } from './knowledge-base/knowledge-base.module';
import { KnowledgeBaseModule } from './knowledge-base/knowledge-base.module';
@NgModule({
imports: [
@ -63,7 +63,7 @@ import { FuseKnowledgeBaseModule } from './knowledge-base/knowledge-base.module'
FaqModule,
// Knowledge base
FuseKnowledgeBaseModule
KnowledgeBaseModule
]
})
export class PagesModule