removes .reverse() from image history to avoid thumbnails shifting as users browse

This commit is contained in:
nai-degen 2024-03-10 15:12:20 -05:00
parent eb55f30414
commit e0bf10626e
1 changed files with 1 additions and 1 deletions

View File

@ -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", {