mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 09:37:17 +00:00
Fix track actionCreators
This commit is contained in:
parent
9d0b8bcf00
commit
06c2e6cabe
1 changed files with 2 additions and 2 deletions
|
|
@ -278,7 +278,7 @@ export function closeEqualizerWindow() {
|
|||
|
||||
export function cropPlaylist() {
|
||||
return (dispatch, getState) => {
|
||||
const { tracks } = getState();
|
||||
const { playlist: { tracks } } = getState();
|
||||
dispatch({
|
||||
type: REMOVE_TRACKS,
|
||||
ids: Object.keys(tracks).filter(id => !tracks[id].selected)
|
||||
|
|
@ -288,7 +288,7 @@ export function cropPlaylist() {
|
|||
|
||||
export function removeSelectedTracks() {
|
||||
return (dispatch, getState) => {
|
||||
const { tracks } = getState();
|
||||
const { playlist: { tracks } } = getState();
|
||||
dispatch({
|
||||
type: REMOVE_TRACKS,
|
||||
ids: Object.keys(tracks).filter(id => tracks[id].selected)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue