From bc41ba3ef232e8d4870617cd8f65a903c7311f00 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Wed, 23 May 2018 19:50:47 +0100 Subject: [PATCH] Fixes #584 --- js/components/PlaylistWindow/PlaylistShade.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/js/components/PlaylistWindow/PlaylistShade.js b/js/components/PlaylistWindow/PlaylistShade.js index 85e95e41..76402e68 100644 --- a/js/components/PlaylistWindow/PlaylistShade.js +++ b/js/components/PlaylistWindow/PlaylistShade.js @@ -80,12 +80,11 @@ class PlaylistShade extends React.Component { } } -const mapDispatchToProps = dispatch => ({ - focusPlaylist: () => - dispatch({ type: SET_FOCUSED_WINDOW, window: WINDOWS.PLAYLIST }), +const mapDispatchToProps = { + focusPlaylist: () => ({ type: SET_FOCUSED_WINDOW, window: WINDOWS.PLAYLIST }), close: () => closeWindow("playlist"), - toggleShade: () => dispatch(togglePlaylistShadeMode()) -}); + toggleShade: () => togglePlaylistShadeMode() +}; const mapStateToProps = state => { const {