summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-core/src/actions/components.js
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-09-20 19:41:25 +0200
committerSamy Pesse <samypesse@gmail.com>2016-09-20 19:41:25 +0200
commit3b3f43a35d5b2c795f05bb5271bd775c1b8271c6 (patch)
tree79f36a086a9de9a4201d49b4e06e9badce5916fe /packages/gitbook-core/src/actions/components.js
parentced0be930dd86bc204cab5b4e3a1cd83aed68ccf (diff)
downloadgitbook-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.js2
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;
}