mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-09 20:15:07 +00:00
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:
parent
6ae0a9760d
commit
5c2e717a40
|
@ -179,7 +179,10 @@ export class FuseNavigationService
|
|||
|
||||
if ( navItem.type === 'collapse' || navItem.type === 'group' )
|
||||
{
|
||||
this.getFlatNavigation(navItem.children);
|
||||
if ( navItem.children )
|
||||
{
|
||||
this.getFlatNavigation(navItem.children);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -31,6 +31,6 @@ const routes = [
|
|||
FuseKnowledgeBaseArticleComponent
|
||||
]
|
||||
})
|
||||
export class FuseKnowledgeBaseModule
|
||||
export class KnowledgeBaseModule
|
||||
{
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user