Skip to content

Commit

Permalink
fix(overmind): remove last part of revertable
Browse files Browse the repository at this point in the history
  • Loading branch information
christianalfoni committed Aug 6, 2020
1 parent 63975fd commit dc1ffb4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/node_modules/overmind/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ export function deepCopy(obj) {
}

const getChangeMutationsDelimiter = '.'
const getChangeMutationsRevert = () => {}
export function getChangeMutations(stateA: object, stateB: object, path: string[] = [], mutations: IMutation[] = []): IMutation[] {
const stateAKeys = Object.keys(stateA)
const stateBKeys = Object.keys(stateB)
Expand All @@ -101,7 +100,6 @@ export function getChangeMutations(stateA: object, stateB: object, path: string[
path: path.concat(key).join('.'),
hasChangedValue: false,
method: 'unset',
revert: getChangeMutationsRevert
})
}
})
Expand All @@ -115,8 +113,7 @@ export function getChangeMutations(stateA: object, stateB: object, path: string[
args: [stateB[key]],
path: path.concat(key).join('.'),
hasChangedValue: false,
method: 'set',
revert: getChangeMutationsRevert
method: 'set'
})
}
})
Expand Down

0 comments on commit dc1ffb4

Please sign in to comment.