Skip to content

Commit

Permalink
Fixes an issue mentioned in nukeop#1569 regarding being unable to pla…
Browse files Browse the repository at this point in the history
…y scanned local files until app restart
  • Loading branch information
CarlosBor committed Jun 18, 2024
1 parent a8dc734 commit 66e2017
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/app/app/actions/local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ export const localLibraryActions = {
removeLocalFolder: createAction(LocalLibrary.REMOVE_LOCAL_FOLDER, (folder: string[]) => folder),
scanLocalFolders: VoidAction(LocalLibrary.SCAN_LOCAL_FOLDERS),
scanLocalFoldersProgress: createAction(LocalLibrary.SCAN_LOCAL_FOLDERS_PROGRESS, (scanProgress: number, scanTotal: number) => ({ scanProgress, scanTotal })),
scanLocalFoldersSuccess: createAction(LocalLibrary.SCAN_LOCAL_FOLDERS_SUCCESS, (payload: Track[]) => payload),
scanLocalFoldersSuccess: createAction(LocalLibrary.SCAN_LOCAL_FOLDERS_SUCCESS, (payload: Track[]) => {
const tracks = Array.isArray(payload) ? payload : Object.values(payload);
return tracks;
}),
scanLocalFoldersFailure: VoidAction(LocalLibrary.SCAN_LOCAL_FOLDERS_FAILURE),
updateFilter: createAction(LocalLibrary.UPDATE_LOCAL_FILTER, (event: { target: { value: string } }) => ({ filter: event.target.value })),
updateLocalSort: createAction(LocalLibrary.UPDATE_LOCAL_SORT, (sortBy, column, direction) => ({
Expand Down

0 comments on commit 66e2017

Please sign in to comment.