diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-04-29 23:19:33 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-04-29 23:19:33 +0200 |
commit | 9acccad23add2670169652bd88e2045cb15ef6f7 (patch) | |
tree | 03f01d6a6a8159b9bad324e910f74e0cab9f8a88 /lib/models | |
parent | db1a0aedf88ef467058408a1a607ada182174c33 (diff) | |
download | gitbook-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.js | 2 |
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); |