mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 05:24:55 +03:00
fix: resetting pages when filter changes
This commit is contained in:
parent
aaecd203e1
commit
f738f91f24
@ -103,6 +103,10 @@ export default function Catalogue() {
|
||||
}));
|
||||
}, [steamGenresMapping, filters.genres]);
|
||||
|
||||
useEffect(() => {
|
||||
setPage(1);
|
||||
}, [filters]);
|
||||
|
||||
const steamUserTagsFilterItems = useMemo(() => {
|
||||
if (!steamUserTags[language]) return [];
|
||||
|
||||
@ -276,7 +280,7 @@ export default function Catalogue() {
|
||||
baseColor={vars.color.darkBackground}
|
||||
highlightColor={vars.color.background}
|
||||
>
|
||||
{Array.from({ length: 24 }).map((_, i) => (
|
||||
{Array.from({ length: PAGE_SIZE }).map((_, i) => (
|
||||
<Skeleton
|
||||
key={i}
|
||||
style={{
|
||||
|
Loading…
Reference in New Issue
Block a user