From 95c4f950cd83959c95350990448ff8b062f86aae Mon Sep 17 00:00:00 2001 From: cch5ng Date: Thu, 30 Mar 2017 00:19:16 -0700 Subject: [PATCH] fix: #57; cleanup --- src/components/Favorites.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/components/Favorites.js b/src/components/Favorites.js index 6eb54ce..a8a13cc 100644 --- a/src/components/Favorites.js +++ b/src/components/Favorites.js @@ -83,21 +83,14 @@ class Favorites extends Component { * */ handleRemoveList(e) { - console.log('clicked remove icon'); - console.log('e.target.id: ' + e.target.id); const keyRemove = e.target.id; let that = this; localforage.removeItem(keyRemove).then(function() { - // Run this code once the key has been removed. - console.log('Key is cleared!'); - var savedLists = []; var renderSavedLists = []; - // The same code, but using ES6 Promises. localforage.iterate(function(value, key, iterationNumber) { - savedLists.push([key, value]); }).then(function() { renderSavedLists = savedLists.map((list) => {