Skip to content

Commit

Permalink
Revert "climbing: Fix photo url (#261)"
Browse files Browse the repository at this point in the history
This reverts commit fe0bc69.
  • Loading branch information
jvaclavik authored Mar 3, 2024
1 parent fe0bc69 commit b4cc35a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export const ClimbingContextProvider = ({ children, feature }: Props) => {
const preparePhotosAndSet = (photoIndex?: number) => {
if (photoPaths === null) getAllRoutesPhotos();
if (!photoPath && photoPaths?.length > 0)
setPhotoPath(photoPaths[photoIndex ?? 0]);
setPhotoPath(photoPaths[photoIndex || 0]);
};

const loadPhotoRelatedData = () => {
Expand Down

0 comments on commit b4cc35a

Please sign in to comment.