Skip to content

Commit

Permalink
remove -> delete
Browse files Browse the repository at this point in the history
  • Loading branch information
nikoloza committed Feb 8, 2025
1 parent 15e733d commit d5743d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/state/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export const setPathCollection = function (changes, options = {}) {
if (change[0] === 'update') {
const result = setByPath.call(state, change[1], change[2], { preventStateUpdate: true })
return overwriteDeep(acc, result)
} else if (change[0] === 'remove') {
} else if (change[0] === 'delete') {
removeByPath.call(state, change[1], options)
}
return acc
Expand Down

0 comments on commit d5743d5

Please sign in to comment.