diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-09-20 19:41:25 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-09-20 19:41:25 +0200 |
commit | 3b3f43a35d5b2c795f05bb5271bd775c1b8271c6 (patch) | |
tree | 79f36a086a9de9a4201d49b4e06e9badce5916fe /packages/gitbook-core/src/actions/components.js | |
parent | ced0be930dd86bc204cab5b4e3a1cd83aed68ccf (diff) | |
download | gitbook-3b3f43a35d5b2c795f05bb5271bd775c1b8271c6.zip gitbook-3b3f43a35d5b2c795f05bb5271bd775c1b8271c6.tar.gz gitbook-3b3f43a35d5b2c795f05bb5271bd775c1b8271c6.tar.bz2 |
Fix rendering of unsafe injected components
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; } |