mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
Change iterate variable
This commit is contained in:
@@ -189,8 +189,8 @@ class StorageItem extends React.Component {
|
|||||||
if (noteSet) {
|
if (noteSet) {
|
||||||
let trashedNoteCount = 0
|
let trashedNoteCount = 0
|
||||||
const noteKeys = noteSet.map(noteKey => { return noteKey })
|
const noteKeys = noteSet.map(noteKey => { return noteKey })
|
||||||
noteKeys.forEach(noteKey => {
|
trashedSet.toJS().forEach(trashedKey => {
|
||||||
if (trashedSet.toJS().some(trashedKey => { return noteKey === trashedKey })) trashedNoteCount++
|
if (noteKeys.some(noteKey => { return noteKey === trashedKey })) trashedNoteCount++
|
||||||
})
|
})
|
||||||
noteCount = noteSet.size - trashedNoteCount
|
noteCount = noteSet.size - trashedNoteCount
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user