mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-16 21:50:35 +02:00
Fix list store for artist detail
This commit is contained in:
@@ -53,7 +53,6 @@ export const NavidromeSongFilters = ({
|
||||
key: pageKey,
|
||||
}) as SongListFilter;
|
||||
|
||||
console.log('updatedFilters :>> ', updatedFilters);
|
||||
handleFilterChange(updatedFilters);
|
||||
},
|
||||
value: filter.ndParams?.starred,
|
||||
|
||||
@@ -43,9 +43,9 @@ export const SongListContent = ({ itemCount, tableRef }: SongListContentProps) =
|
||||
const queryClient = useQueryClient();
|
||||
const server = useCurrentServer();
|
||||
|
||||
const { display, table } = useSongListStore();
|
||||
const { id, pageKey } = useSongListContext();
|
||||
const filter = useSongListFilter({ id, key: pageKey });
|
||||
const { display, table } = useSongListStore({ id, key: pageKey });
|
||||
|
||||
const { setTable, setTablePagination } = useListStoreActions();
|
||||
const handlePlayQueueAdd = usePlayQueueAdd();
|
||||
@@ -155,7 +155,6 @@ export const SongListContent = ({ itemCount, tableRef }: SongListContentProps) =
|
||||
const debouncedColumnChange = debounce(handleColumnChange, 200);
|
||||
|
||||
const handleScroll = (e: BodyScrollEvent) => {
|
||||
if (id) return;
|
||||
const scrollOffset = Number((e.top / table.rowHeight).toFixed(0));
|
||||
setTable({ data: { scrollOffset }, key: pageKey });
|
||||
};
|
||||
|
||||
@@ -93,7 +93,7 @@ export const SongListHeaderFilters = ({
|
||||
}: SongListHeaderFiltersProps) => {
|
||||
const server = useCurrentServer();
|
||||
const { id, pageKey } = useSongListContext();
|
||||
const { display, table } = useSongListStore();
|
||||
const { display, table } = useSongListStore({ id, key: pageKey });
|
||||
const { setFilter, setTable, setTablePagination, setDisplayType } = useListStoreActions();
|
||||
const filter = useSongListFilter({ id, key: pageKey });
|
||||
|
||||
|
||||
@@ -36,8 +36,8 @@ export const SongListHeader = ({
|
||||
tableRef,
|
||||
}: SongListHeaderProps) => {
|
||||
const server = useCurrentServer();
|
||||
const { pageKey } = useSongListContext();
|
||||
const { filter } = useSongListStore();
|
||||
const { id, pageKey } = useSongListContext();
|
||||
const { filter } = useSongListStore({ id, key: pageKey });
|
||||
const { setFilter, setTablePagination } = useListStoreActions();
|
||||
const handlePlayQueueAdd = usePlayQueueAdd();
|
||||
const cq = useContainerQuery();
|
||||
|
||||
Reference in New Issue
Block a user