mirror of
https://github.com/Radiquum/AniX.git
synced 2025-05-03 11:29:40 +05:00
frontend: fix linted errors
This commit is contained in:
parent
9e75a0783c
commit
58ed4007df
9 changed files with 46 additions and 14 deletions
|
@ -34,6 +34,7 @@ export default function Home() {
|
|||
} else {
|
||||
setList("last");
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, []);
|
||||
|
||||
async function fetchData(list, page = 0) {
|
||||
|
@ -55,12 +56,14 @@ export default function Home() {
|
|||
setPage(0);
|
||||
fetchData(list); // Call fetchData here
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [list]);
|
||||
|
||||
useEffect(() => {
|
||||
if (list && releases) {
|
||||
fetchData(list, page); // Use fetchData for pagination
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [page]);
|
||||
|
||||
const chips = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue