fsek / fsek/web

Album preview shows wrong number of total images

Open
#1,004 0 comments 0 reactions 0 assignees View on GitHub
issue/bug
Dominant language
Ruby
Stars
17
Forks
4
PR merge metrics
No merged PRs in 30d

Description

The preview of an album did not display the correct number of total images. I was however able to fix it by simply making some change to the album and updating it. I think that the reason why this fixed the problem is due to the fact that when more images are added to an album, the album object itself is not updated (or at least not trigger a reload of the cached album object). This will then result in `album.images.count` not returning the correct number of images. When I updated the album object, the cache album was reseted, resulting in `album.images.count` returning the expected number of total images.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.