mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 10:53:33 +00:00
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],
|
artistIds: [args.id],
|
||||||
...state.item.song.filter,
|
...state.item.song.filter,
|
||||||
...state.detail[args.key]?.filter,
|
...state.detail[args.key]?.filter,
|
||||||
jfParams: {
|
_custom: {
|
||||||
...state.detail[args.key]?.filter.jfParams,
|
...state.detail[args.key]?.filter._custom,
|
||||||
|
jellyfin: {
|
||||||
|
...state.detail[args.key]?.filter._custom.jellyfin,
|
||||||
includeItemTypes: 'Audio',
|
includeItemTypes: 'Audio',
|
||||||
},
|
},
|
||||||
ndParams: {
|
navidrome: {
|
||||||
...state.detail[args.key]?.filter.ndParams,
|
...state.detail[args.key]?.filter._custom.navidrome,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -206,8 +209,6 @@ export const useListStore = create<ListSlice>()(
|
||||||
state.detail[args.key] = {
|
state.detail[args.key] = {
|
||||||
filter: {
|
filter: {
|
||||||
...state.item[page as keyof ListState['item']].filter,
|
...state.item[page as keyof ListState['item']].filter,
|
||||||
jfParams: {},
|
|
||||||
ndParams: {},
|
|
||||||
} as FilterType,
|
} as FilterType,
|
||||||
table: {
|
table: {
|
||||||
pagination: {
|
pagination: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue