removes .reverse() from image history to avoid thumbnails shifting as users browse
This commit is contained in:
parent
eb55f30414
commit
e0bf10626e
|
@ -11,7 +11,7 @@ let metadataCacheValid = 0;
|
|||
|
||||
const handleImageHistoryPage = (req: Request, res: Response) => {
|
||||
const page = parseInt(req.query.page as string) || 1;
|
||||
const allImages = getLastNImages().reverse();
|
||||
const allImages = getLastNImages();
|
||||
const { items, pageCount } = paginate(allImages, page, IMAGES_PER_PAGE);
|
||||
|
||||
res.render("image_history", {
|
||||
|
|
Loading…
Reference in New Issue