-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use filename to find current index
The viewer component is usually used with a folder and the basename unique. However in photos, the fileList contains objects from multiple folders and the basename is not always unique. How to reproduce: - Create folder A and B - Upload an image to folder A and name it "Test" - Upload another image to folder B and also name it "Test" - Open photos - Click on the image from folder B - The image from folder A is shown To find the correct "currentIndex" we need filename (including the path). Signed-off-by: Daniel Kesselberg <[email protected]>
- Loading branch information
Showing
4 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters