Fix: View Images button logic

This commit is contained in:
2025-12-28 22:07:20 +11:00
parent ec09d995aa
commit 9a5212de9e

View File

@@ -172,11 +172,9 @@ function displayResults(data) {
}; };
document.getElementById('view-images').onclick = (e) => { document.getElementById('view-images').onclick = (e) => {
e.preventDefault(); e.preventDefault();
if (data.filmstrip && data.filmstrip.length > 0) { // Data might exist on server even if filmstrip array is empty in this object
window.open(`/images.html?id=${data.id}`, '_blank'); console.log("Opening images page for test:", data.id);
} else { window.open(`/images.html?id=${data.id}`, '_blank');
alert('No images available.');
}
}; };
} }