Skip to content

Commit

Permalink
upload: fix getNextWikimediaCommonsIndex() (#871)
Browse files Browse the repository at this point in the history
  • Loading branch information
zbycz authored Jan 5, 2025
1 parent ac86312 commit 1b667fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/FeaturePanel/Climbing/utils/photo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const getNextWikimediaCommonsIndex = (tags: FeatureTags) => {
}
}
return max;
}, 0);
}, -1 /* so it will be 0 for the first tag*/);

return maxKey + 1;
};
Expand Down

0 comments on commit 1b667fa

Please sign in to comment.