Skip to content

Commit

Permalink
fix(watch): check path and not obj
Browse files Browse the repository at this point in the history
  • Loading branch information
sebkolind committed Dec 7, 2023
1 parent 881720b commit 6fb708d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/one.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function watch(obj, key, fn) {
let path = obj
let dest = key

if (path.includes('.')) {
if (key.includes('.')) {
const parts = path.split('.')

dest = parts.pop()
Expand Down

0 comments on commit 6fb708d

Please sign in to comment.