Commit 5772eed8 authored by Matthew Taylor's avatar Matthew Taylor

use lodash instead of assign

this fixes #1500, since lodash works in ie11 but `assign` does not
parent b7f1f5e9
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment