summaryrefslogtreecommitdiffstats
path: root/lib/models
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-04-29 23:19:33 +0200
committerSamy Pesse <samypesse@gmail.com>2016-04-29 23:19:33 +0200
commit9acccad23add2670169652bd88e2045cb15ef6f7 (patch)
tree03f01d6a6a8159b9bad324e910f74e0cab9f8a88 /lib/models
parentdb1a0aedf88ef467058408a1a607ada182174c33 (diff)
downloadgitbook-9acccad23add2670169652bd88e2045cb15ef6f7.zip
gitbook-9acccad23add2670169652bd88e2045cb15ef6f7.tar.gz
gitbook-9acccad23add2670169652bd88e2045cb15ef6f7.tar.bz2
Fix validation of configuration for plugins
Diffstat (limited to 'lib/models')
-rw-r--r--lib/models/config.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/models/config.js b/lib/models/config.js
index 547007a..6ee03e4 100644
--- a/lib/models/config.js
+++ b/lib/models/config.js
@@ -28,7 +28,7 @@ Config.prototype.getValue = function(keyPath, def) {
keyPath = Config.keyToKeyPath(keyPath);
if (!values.hasIn(keyPath)) {
- return def;
+ return Immutable.fromJS(def);
}
return values.getIn(keyPath);