use lodash instead of assign

this fixes #1500, since lodash works in ie11 but `assign` does not
This commit is contained in:
Matthew Taylor 2017-09-05 12:28:01 -04:00
parent b7f1f5e913
commit 5772eed8f7

View file

@ -1,4 +1,5 @@
var combineReducers = require('redux').combineReducers;
var defaults = require('lodash.defaults');
var messageCountReducer = require('./message-count.js').messageCountReducer;
var permissionsReducer = require('./permissions.js').permissionsReducer;
@ -16,7 +17,7 @@ var sessionReducer = require('./session.js').sessionReducer;
*/
module.exports = function (opts) {
opts = opts || {};
return combineReducers(Object.assign(opts, {
return combineReducers(defaults(opts, {
session: sessionReducer,
permissions: permissionsReducer,
messageCount: messageCountReducer