Guess at the correct value for 'PAGES.DOWNLOADED'

This commit is contained in:
David Granado 2022-03-25 21:57:41 -05:00 committed by Thomas Zarebczan
parent 3c20332912
commit 2c3432c9cb
2 changed files with 2 additions and 1 deletions

View file

@ -34,6 +34,7 @@ exports.LIBRARY = 'library';
exports.LISTS = 'lists'; exports.LISTS = 'lists';
exports.PLAYLISTS = 'playlists'; exports.PLAYLISTS = 'playlists';
exports.INVITE = 'invite'; exports.INVITE = 'invite';
exports.DEPRECATED__DOWNLOADED = 'publish';
exports.DEPRECATED__PUBLISH = 'publish'; exports.DEPRECATED__PUBLISH = 'publish';
exports.DEPRECATED__PUBLISHED = 'published'; exports.DEPRECATED__PUBLISHED = 'published';
exports.UPLOAD = 'upload'; exports.UPLOAD = 'upload';

View file

@ -141,7 +141,7 @@ reducers[ACTIONS.FILE_DELETE] = (state, action) => {
reducers[ACTIONS.SET_FILE_LIST_SORT] = (state, action) => { reducers[ACTIONS.SET_FILE_LIST_SORT] = (state, action) => {
const pageSortStates = { const pageSortStates = {
[PAGES.DEPRECATED__PUBLISH]: 'fileListPublishedSort', [PAGES.DEPRECATED__PUBLISH]: 'fileListPublishedSort',
[PAGES.DOWNLOADED]: 'fileListDownloadedSort', [PAGES.DEPRECATED__DOWNLOADED]: 'fileListDownloadedSort',
}; };
const pageSortState = pageSortStates[action.data.page]; const pageSortState = pageSortStates[action.data.page];
const { value } = action.data; const { value } = action.data;