Skip to content

Fixed Updating Issue in Profile Educational Background Info - #481

Merged
Jecomo-Alyssa-Lyn merged 1 commit into
devfrom
profile-educational-background/fix-updating-issue
Dec 23, 2025
Merged

Fixed Updating Issue in Profile Educational Background Info#481
Jecomo-Alyssa-Lyn merged 1 commit into
devfrom
profile-educational-background/fix-updating-issue

Conversation

@Jecomo-Alyssa-Lyn

Copy link
Copy Markdown
Collaborator

Fix: Educational Background Form Refuses to Accept Data Updates

Problem:

  • Form fields remained disabled after clicking the Edit button
  • Changes to education data were not being saved
  • TypeScript type mismatch causing save failures

Solution:

  • Fixed edit mode synchronization by updating both local state and ref when Edit button is clicked
  • Properly initialized edit mode for new empty education entries
  • Changed codev_id and profile_id to use undefined instead of null to match TypeScript type definitions

Changes:

  • Updated IconEdit onClick handler to call handleEditModePerItem(itemNo, true) before setEditMode(true)
  • Added setEditMode(true) in the first useEffect for new empty items
  • Modified handleSaveAndUpdate to use undefined for empty UUID fields instead of null

This ensures the edit mode state stays synchronized between the component state and the ref, allowing users to properly edit and save their educational background information.

@vercel

vercel Bot commented Dec 23, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
codebility-plus-codebility-portal Ready Ready Preview, Comment Dec 23, 2025 2:38am

@Jecomo-Alyssa-Lyn
Jecomo-Alyssa-Lyn merged commit a5291ae into dev Dec 23, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant