diff --git a/packages/node_modules/pouchdb-adapter-indexeddb/src/bulkDocs.js b/packages/node_modules/pouchdb-adapter-indexeddb/src/bulkDocs.js index fb049dc4c2..4d7768e60d 100644 --- a/packages/node_modules/pouchdb-adapter-indexeddb/src/bulkDocs.js +++ b/packages/node_modules/pouchdb-adapter-indexeddb/src/bulkDocs.js @@ -225,7 +225,7 @@ export default function (api, req, opts, metadata, dbOpts, idbChanges, callback) // If there have been revisions stemmed when merging trees, // delete their data - const revsToDelete = doc.stemmedRevs || []; + let revsToDelete = doc.stemmedRevs || []; if (autoCompaction && !isNewDoc) { revsToDelete = revsToDelete.concat(compactTree(doc));