diff --git a/lib/router-store.js b/lib/router-store.js index 3279f1f..88c1f7f 100644 --- a/lib/router-store.js +++ b/lib/router-store.js @@ -11,6 +11,8 @@ var _generateUrl = require("./generate-url"); var _class, _descriptor, _temp; +function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } @@ -294,7 +296,7 @@ function () { }; } - if (state !== null) { + if (state !== null && _typeof(state) !== 'object') { state = false; } diff --git a/package-lock.json b/package-lock.json index da2db55..f07046d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "damidev-mobx-router", - "version": "1.1.0", + "version": "1.1.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index fbecc89..ffcdf7e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "damidev-mobx-router", "description": "MobX powered router for React apps", - "version": "1.1.0", + "version": "1.1.1", "author": "Jakub Hrášek ", "license": "MIT", "bugs": {