Merge pull request #17 from olegvodyanov/add_pagination
All checks were successful
continuous-integration/drone/push Build is passing

fix
This commit is contained in:
Олег Водянов 2025-04-23 10:45:52 +04:00 committed by GitHub
commit dff6808e94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,7 +7,7 @@ const PER_PAGE = 8;
let currentPage = 1;
function loadLinks() {
fetch('/api/links/?page=${currentPage}&per_page=${PER_PAGE}')
fetch(`/api/links/?page=${currentPage}&per_page=${PER_PAGE}`)
.then(res => res.json())
.then(data => {
linksData = data.results;