Skip to content

Commit

Permalink
Merge pull request #570 from Ohjann/fix-async-add
Browse files Browse the repository at this point in the history
Fix adding to list asynchronously
  • Loading branch information
javve authored Nov 21, 2020
2 parents 572cc95 + 30967fa commit 21b0cad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ module.exports = function (id, options, values) {
return
}
if (callback) {
addAsync(values, callback)
addAsync(values.slice(0), callback)
return
}
var added = [],
Expand Down

0 comments on commit 21b0cad

Please sign in to comment.