Adding sidebar list
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
|
||||
import { createRange } from '../../util/arrays';
|
||||
import { createRange, removeDuplicates } from '../../util/arrays';
|
||||
import { uriSource } from '../../util/helpers';
|
||||
|
||||
const spotifyActions = require('../../services/spotify/actions');
|
||||
@ -442,6 +442,6 @@ export function removePinned(uri) {
|
||||
export function updatePinned(pinned) {
|
||||
return {
|
||||
type: 'UPDATE_PINNED',
|
||||
pinned,
|
||||
pinned: removeDuplicates(pinned),
|
||||
};
|
||||
}
|
||||
|
||||
@ -814,7 +814,7 @@ const CoreMiddleware = (function () {
|
||||
]));
|
||||
next(action);
|
||||
break;
|
||||
|
||||
|
||||
case 'REMOVE_PINNED':
|
||||
store.dispatch(coreActions.updatePinned(
|
||||
store.getState().core.pinned.filter((item) => item !== action.uri),
|
||||
|
||||
Reference in New Issue
Block a user