We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e316c88 commit 57cea67Copy full SHA for 57cea67
packages/node_modules/pouchdb-selector-core/src/utils.js
@@ -3,6 +3,9 @@ import { clone } from 'pouchdb-utils';
3
// this would just be "return doc[field]", but fields
4
// can be "deep" due to dot notation
5
function getFieldFromDoc(doc, parsedField) {
6
+ if (!doc) {
7
+ return;
8
+ }
9
var value = doc;
10
for (var i = 0, len = parsedField.length; i < len; i++) {
11
var key = parsedField[i];
0 commit comments