Skip to content

Commit

Permalink
Merge pull request #12 from frctl/readme-fixes
Browse files Browse the repository at this point in the history
Fix typo in 'navigation' section link & filtered components nav example
  • Loading branch information
allmarkedup authored Mar 11, 2019
2 parents d8e6d75 + 5b01273 commit abfd4db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Feedback, comments and/or pull requests on **all** aspects of the prototype are
* Middleware-based components parser/compiler
* [Plugin system](#plugins) for compiler and UI customisation
* [Adapter-based](#adapters) component rendering
* Completely customisable [nav generation](#navigaion)
* Completely customisable [nav generation](#navigation)
* Component and scenario search
* Easy [asset referencing](#view-template-assets) within components
* Dynamic page builder
Expand Down Expand Up @@ -677,13 +677,13 @@ module.exports = {
items(state, toTree){
// filter components by some custom property in the config
const components = state.components.filter(component => {
return component.config.customProp = true;
return component.config.customProp === true;
});
// return the navigation tree
return [
{
label: 'Components',
children: state.components // flat list of filtered components
children: components // flat list of filtered components
},
{
label: 'Pages',
Expand Down

0 comments on commit abfd4db

Please sign in to comment.