From 87ea66bb92edd0a07cdd9ecdba0a428f060cd7cd Mon Sep 17 00:00:00 2001 From: asmsuechan Date: Sat, 5 Aug 2017 22:00:12 +0900 Subject: [PATCH] Change iterate variable --- browser/main/SideNav/StorageItem.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/main/SideNav/StorageItem.js b/browser/main/SideNav/StorageItem.js index 67990d8b..fefc5a60 100644 --- a/browser/main/SideNav/StorageItem.js +++ b/browser/main/SideNav/StorageItem.js @@ -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 }