Browse Source

Fix null musicFolder in state

master
jeffvli 3 years ago
committed by Jeff
parent
commit
632e66b432
  1. 5
      src/redux/folderSlice.ts

5
src/redux/folderSlice.ts

@ -18,7 +18,10 @@ export interface FolderSelection {
}
const initialState: FolderSelection = {
musicFolder: String(parsedSettings.musicFolder.id) || undefined,
musicFolder:
String(parsedSettings.musicFolder.id) === 'null'
? undefined
: String(parsedSettings.musicFolder.id),
musicFolderName: String(parsedSettings.musicFolder.name) || undefined,
applied: {
albums: Boolean(parsedSettings.musicFolder.albums),

Loading…
Cancel
Save