We don’t need to repeat id here, since the key is id?

@goto-bus-stop I might be missing something though
This commit is contained in:
Artur Paikin 2017-09-18 17:11:21 -04:00
parent ef1c3306c6
commit 16734976a7

View file

@ -63,10 +63,7 @@ class IndexedDBStore {
}).then((files) => {
const result = {}
files.forEach((file) => {
result[file.fileID] = {
id: file.fileID,
data: file.data
}
result[file.fileID] = file.data
})
return result
})