Repository navigation
fix: save multiple climb fields - #1469
Open
manikantavarma2889 wants to merge 1 commit into
Open
manikantavarma2889 wants to merge 1 commit into
manikantavarma2889 wants to merge 1 commit into
Conversation
manikantavarma2889
had a problem deploying
to
Preview
September 17, 2026 02:32 — with
GitHub Actions
Failure
This branch was successfully deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Template for Issue #1469
name: Pull request
about: Create a pull request
title: ''
labels: ''
assignees: ''
What type of PR is this?(check all applicable)
What this PR achieves
Fixes the 401 error that occurs when saving more than one climb field at a time. Previously, each climb edit form independently called
useSession({ required: true }), getting separate access tokens. When the first save succeeded, the session token became invalidated, causing subsequent saves to fail with 401 errors.This PR moves the
useSession()call to the page level and shares theaccessTokenwith all four climb edit forms, ensuring all API calls use the same valid session token.Notes
Summary of Changes
Files Modified (5 files):
src/app/(default)/editClimb/[slug]/page.tsx - Added page-level useSession() and shares accessToken with all forms
src/app/(default)/editClimb/[slug]/components/ClimbNameForm.tsx - Accepts shared accessToken prop
src/app/(default)/editClimb/[slug]/components/ClimbDescriptionForm.tsx - Accepts shared accessToken prop
`src/app/(default)/editClimb/[slug])