Add additional undefined check for custom filters

This commit is contained in:
jeffvli 2023-05-08 03:33:38 -07:00
parent 6d5e10a31c
commit a9ca3f9083
3 changed files with 12 additions and 12 deletions

View file

@ -87,13 +87,13 @@ export const useListStore = create<ListSlice>()(
...state.item.song.filter,
...state.detail[args.key]?.filter,
_custom: {
...state.detail[args.key]?.filter._custom,
...state.detail[args.key]?.filter?._custom,
jellyfin: {
...state.detail[args.key]?.filter._custom.jellyfin,
...state.detail[args.key]?.filter?._custom?.jellyfin,
includeItemTypes: 'Audio',
},
navidrome: {
...state.detail[args.key]?.filter._custom.navidrome,
...state.detail[args.key]?.filter?._custom?.navidrome,
},
},
};