diff --git a/packages/node_modules/pouchdb-adapter-indexeddb/src/util.js b/packages/node_modules/pouchdb-adapter-indexeddb/src/util.js index e21fa29830..6e02ff49be 100644 --- a/packages/node_modules/pouchdb-adapter-indexeddb/src/util.js +++ b/packages/node_modules/pouchdb-adapter-indexeddb/src/util.js @@ -56,8 +56,8 @@ function processAttachment(name, src, doc, isBinary, attachmentFormat) { function rawIndexFields(ddoc, viewName) { // fields are an array of either the string name of the field, or a key value const fields = ddoc.views[viewName].options && - ddoc.views[viewName].options.def && - ddoc.views[viewName].options.def.fields || []; + ddoc.views[viewName].options.def && + ddoc.views[viewName].options.def.fields || []; // Either ['foo'] or [{'foo': 'desc'}] return fields.map(function (field) {