Skip to content

Commit dc1ffb4

Browse files
fix(overmind): remove last part of revertable
1 parent 63975fd commit dc1ffb4

File tree

1 file changed

+1
-4
lines changed
  • packages/node_modules/overmind/src

1 file changed

+1
-4
lines changed

packages/node_modules/overmind/src/utils.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ export function deepCopy(obj) {
8888
}
8989

9090
const getChangeMutationsDelimiter = '.'
91-
const getChangeMutationsRevert = () => {}
9291
export function getChangeMutations(stateA: object, stateB: object, path: string[] = [], mutations: IMutation[] = []): IMutation[] {
9392
const stateAKeys = Object.keys(stateA)
9493
const stateBKeys = Object.keys(stateB)
@@ -101,7 +100,6 @@ export function getChangeMutations(stateA: object, stateB: object, path: string[
101100
path: path.concat(key).join('.'),
102101
hasChangedValue: false,
103102
method: 'unset',
104-
revert: getChangeMutationsRevert
105103
})
106104
}
107105
})
@@ -115,8 +113,7 @@ export function getChangeMutations(stateA: object, stateB: object, path: string[
115113
args: [stateB[key]],
116114
path: path.concat(key).join('.'),
117115
hasChangedValue: false,
118-
method: 'set',
119-
revert: getChangeMutationsRevert
116+
method: 'set'
120117
})
121118
}
122119
})

0 commit comments

Comments
 (0)