From 1b57db3fb11df3ecf45d941380a3bfb4d7952d9c Mon Sep 17 00:00:00 2001 From: "oleg.vodyanov91@gmail.com" Date: Wed, 23 Apr 2025 10:49:25 +0400 Subject: [PATCH] fix --- static/links/main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/links/main.js b/static/links/main.js index d66fdb0..461ba63 100644 --- a/static/links/main.js +++ b/static/links/main.js @@ -3,9 +3,10 @@ const addLinkBtn = document.getElementById('addLinkBtn'); const newLinksContainer = document.getElementById('newLinksContainer'); const watchedLinksContainer = document.getElementById('watchedLinksContainer'); +const PER_PAGE = 8; +let currentPage = 1; + function loadLinks() { - const PER_PAGE = 8; - let currentPage = 1; fetch(`/api/links/?page=${currentPage}&per_page=${PER_PAGE}`) .then(res => res.json()) .then(data => {