Skip to content

Commit e28a62a

Browse files
authored
(#8706) - Handle null options in 'get' method
1 parent 4f3a926 commit e28a62a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/node_modules/pouchdb-core/src/adapter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,7 @@ class AbstractPouchDB extends EventEmitter {
493493
cb = opts;
494494
opts = {};
495495
}
496+
opts = opts || {};
496497
if (typeof id !== 'string') {
497498
return cb(createError(INVALID_ID));
498499
}

0 commit comments

Comments
 (0)