Fix tracks list refresh on search

This commit is contained in:
jeffvli 2023-09-25 15:57:48 -07:00
parent 9e3e038d42
commit 62794623a3

View file

@ -29,7 +29,7 @@ export const SongListHeader = ({ gridRef, title, itemCount, tableRef }: SongList
const { display, filter } = useListStoreByKey({ key: pageKey }); const { display, filter } = useListStoreByKey({ key: pageKey });
const cq = useContainerQuery(); const cq = useContainerQuery();
const { handleRefreshTable } = useListFilterRefresh({ const { handleRefreshTable, handleRefreshGrid } = useListFilterRefresh({
itemType: LibraryItem.SONG, itemType: LibraryItem.SONG,
server, server,
}); });
@ -51,7 +51,7 @@ export const SongListHeader = ({ gridRef, title, itemCount, tableRef }: SongList
handleRefreshTable(tableRef, filterWithCustom); handleRefreshTable(tableRef, filterWithCustom);
setTablePagination({ data: { currentPage: 0 }, key: pageKey }); setTablePagination({ data: { currentPage: 0 }, key: pageKey });
} else { } else {
// handleRefreshGrid(gridRef, filterWithCustom); handleRefreshGrid(gridRef, filterWithCustom);
} }
}, 500); }, 500);