diff options
Diffstat (limited to 'packages/gitbook-core/src/actions/components.js')
-rw-r--r-- | packages/gitbook-core/src/actions/components.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/gitbook-core/src/actions/components.js b/packages/gitbook-core/src/actions/components.js index 89b0c9e..f21c382 100644 --- a/packages/gitbook-core/src/actions/components.js +++ b/packages/gitbook-core/src/actions/components.js @@ -8,7 +8,7 @@ const ACTION_TYPES = require('./TYPES'); function findMatchingComponents(state, matching) { return state .filter(({descriptor}) => { - if (matching.role && matching.role === descriptor.role) { + if (matching.role && matching.role !== descriptor.role) { return false; } |