Browse Source

Fix duplicate search entries when editing

pull/47/head
NGPixel 7 years ago
parent
commit
e49246028a
1 changed files with 2 additions and 2 deletions
  1. 4
      libs/search.js

4
libs/search.js

@ -114,8 +114,8 @@ module.exports = {
AND: { 'entryPath': [entryPath] }
}]
})).then((results) => {
if (results.totalHits > 0) {
let delIds = _.map(results.hits, 'id')
if (results && results.length > 0) {
let delIds = _.map(results, 'id')
return self._si.delAsync(delIds)
} else {
return true

Loading…
Cancel
Save