This commit is contained in:
Simon Cambier
2022-10-22 19:45:01 +02:00
parent 7ae62362bd
commit 77d583d5f8

View File

@@ -27,11 +27,9 @@ class CacheManager {
const data = (await database.searchHistory.toArray()) const data = (await database.searchHistory.toArray())
.reverse() .reverse()
.map(o => o.query) .map(o => o.query)
console.log(this.nextQueryIsEmpty)
if (this.nextQueryIsEmpty) { if (this.nextQueryIsEmpty) {
data.unshift('') data.unshift('')
} }
console.log(data)
return data return data
} }