From 5e43988d7cbd3bb69d9da81090e01b3316b65569 Mon Sep 17 00:00:00 2001 From: Pascal Opitz Date: Tue, 22 Nov 2016 20:04:04 +1030 Subject: [PATCH] Removed console log, corrected item count --- src/ui/actions/BrowserListActions.js | 2 +- src/ui/components/VolumeControls.jsx | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/ui/actions/BrowserListActions.js b/src/ui/actions/BrowserListActions.js index 8b07f7b..48afc84 100644 --- a/src/ui/actions/BrowserListActions.js +++ b/src/ui/actions/BrowserListActions.js @@ -318,7 +318,7 @@ export default { title: item.title, parent: item, serviceClient: client, - items: items, + items: _.without(items, undefined), }; Dispatcher.dispatch({ diff --git a/src/ui/components/VolumeControls.jsx b/src/ui/components/VolumeControls.jsx index ac7f9fa..03f62c9 100644 --- a/src/ui/components/VolumeControls.jsx +++ b/src/ui/components/VolumeControls.jsx @@ -131,11 +131,6 @@ class VolumeControls extends React.Component { } let volume = Math.floor(_.sum(_.map(this.state.players, (p) => Number(p.volume))) / keys.length); - - console.trace({ - volume - }); - return volume; }