From 3e3bb67884378fddf78438e52fb29e1ab2d0264f Mon Sep 17 00:00:00 2001 From: Flo Greistorfer Date: Sun, 28 Sep 2025 15:34:37 +0200 Subject: [PATCH] fixed wrong preload on filtering --- templates/functionality.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/functionality.js b/templates/functionality.js index 7a47fbf..7924ab3 100644 --- a/templates/functionality.js +++ b/templates/functionality.js @@ -54,7 +54,7 @@ class PhotoGallery { const controller = new AbortController(); const signal = controller.signal; this.controllers[imgIndex] = controller; - const urlToFetch = this.items[imgIndex]?.src; + const urlToFetch = this.shown[imgIndex]?.src; if (urlToFetch) { fetch(urlToFetch, { method: "GET", signal }).catch(() => {}); }