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' )
|
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
|
FuseKnowledgeBaseArticleComponent
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class FuseKnowledgeBaseModule
|
export class KnowledgeBaseModule
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ import { PricingModule } from './pricing/pricing.module';
|
||||||
import { ProfileModule } from './profile/profile.module';
|
import { ProfileModule } from './profile/profile.module';
|
||||||
import { SearchModule } from './search/search.module';
|
import { SearchModule } from './search/search.module';
|
||||||
import { FaqModule } from './faq/faq.module';
|
import { FaqModule } from './faq/faq.module';
|
||||||
import { FuseKnowledgeBaseModule } from './knowledge-base/knowledge-base.module';
|
import { KnowledgeBaseModule } from './knowledge-base/knowledge-base.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
|
@ -63,7 +63,7 @@ import { FuseKnowledgeBaseModule } from './knowledge-base/knowledge-base.module'
|
||||||
FaqModule,
|
FaqModule,
|
||||||
|
|
||||||
// Knowledge base
|
// Knowledge base
|
||||||
FuseKnowledgeBaseModule
|
KnowledgeBaseModule
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class PagesModule
|
export class PagesModule
|
||||||
|
|
Loading…
Reference in New Issue
Block a user