Permalink
Browse files

Defaulting options in List.updateItem()

  • Loading branch information...
1 parent f3083cc commit 75c28d26c2c8f10a16dc7a3bf901cda542141a6e @JedWatson JedWatson committed Dec 23, 2016
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/list/updateItem.js
@@ -50,6 +50,9 @@ function updateItem (item, data, options, callback) {
callback = options;
options = {};
}
+ if (!options) {
+ options = {};
+ }
// update fields with noedit: true set if fields have been explicitly
// provided, or if the ignoreNoEdit option is true

0 comments on commit 75c28d2

Please sign in to comment.