From b4cc35a16f29ed138f00e79f7a06c448c811a9fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20V=C3=A1clav=C3=ADk?= Date: Sun, 3 Mar 2024 09:49:06 +0100 Subject: [PATCH] Revert "climbing: Fix photo url (#261)" This reverts commit fe0bc6971831fdf2271bd2e4b3ef53a4421905b4. --- .../FeaturePanel/Climbing/contexts/ClimbingContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/FeaturePanel/Climbing/contexts/ClimbingContext.tsx b/src/components/FeaturePanel/Climbing/contexts/ClimbingContext.tsx index faff5bd05..bd1d43444 100644 --- a/src/components/FeaturePanel/Climbing/contexts/ClimbingContext.tsx +++ b/src/components/FeaturePanel/Climbing/contexts/ClimbingContext.tsx @@ -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 = () => {