Skip to content

Commit

Permalink
fix date merging bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkrick committed Apr 28, 2017
1 parent 39883cd commit da2e138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/normalize/mergeStores.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default function mergeStores(state, src, isMutation) {
const key = srcKeys[i];
const srcProp = src[key];
const targetProp = target[key];
if (isObject(srcProp) && isObject(targetProp)) {
if (isObject(srcProp) && isObject(targetProp) && !(srcProp instanceof Date)) {
const srcIsArray = Array.isArray(srcProp);
const stateIsArray = Array.isArray(targetProp);
if (!srcIsArray && !stateIsArray) {
Expand Down

0 comments on commit da2e138

Please sign in to comment.