Update initial list store filters
This commit is contained in:
parent
62670964c0
commit
5b616d5928
1 changed files with 9 additions and 8 deletions
|
@ -86,12 +86,15 @@ export const useListStore = create<ListSlice>()(
|
|||
artistIds: [args.id],
|
||||
...state.item.song.filter,
|
||||
...state.detail[args.key]?.filter,
|
||||
jfParams: {
|
||||
...state.detail[args.key]?.filter.jfParams,
|
||||
includeItemTypes: 'Audio',
|
||||
},
|
||||
ndParams: {
|
||||
...state.detail[args.key]?.filter.ndParams,
|
||||
_custom: {
|
||||
...state.detail[args.key]?.filter._custom,
|
||||
jellyfin: {
|
||||
...state.detail[args.key]?.filter._custom.jellyfin,
|
||||
includeItemTypes: 'Audio',
|
||||
},
|
||||
navidrome: {
|
||||
...state.detail[args.key]?.filter._custom.navidrome,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
|
@ -206,8 +209,6 @@ export const useListStore = create<ListSlice>()(
|
|||
state.detail[args.key] = {
|
||||
filter: {
|
||||
...state.item[page as keyof ListState['item']].filter,
|
||||
jfParams: {},
|
||||
ndParams: {},
|
||||
} as FilterType,
|
||||
table: {
|
||||
pagination: {
|
||||
|
|
Reference in a new issue