From 37ab5965ed3e43b5019e437ece505deab3b02ddd Mon Sep 17 00:00:00 2001 From: "oleg.vodyanov91@gmail.com" Date: Wed, 23 Apr 2025 10:47:58 +0400 Subject: [PATCH] fix --- static/links/main.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/static/links/main.js b/static/links/main.js index 461ba63..d66fdb0 100644 --- a/static/links/main.js +++ b/static/links/main.js @@ -3,10 +3,9 @@ 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 => {