1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

Change iterate variable

This commit is contained in:
asmsuechan
2017-08-05 22:00:12 +09:00
parent d6280f4397
commit 87ea66bb92

View File

@@ -189,8 +189,8 @@ class StorageItem extends React.Component {
if (noteSet) {
let trashedNoteCount = 0
const noteKeys = noteSet.map(noteKey => { return noteKey })
noteKeys.forEach(noteKey => {
if (trashedSet.toJS().some(trashedKey => { return noteKey === trashedKey })) trashedNoteCount++
trashedSet.toJS().forEach(trashedKey => {
if (noteKeys.some(noteKey => { return noteKey === trashedKey })) trashedNoteCount++
})
noteCount = noteSet.size - trashedNoteCount
}