Skip to content

[BUG]: State-level constraints prevent removing the last item in Education or Skills #76

@Gautam25Raj

Description

@Gautam25Raj

Affected Apps / Packages

Studio (apps/studio)

Description

Users are prevented from completely clearing their Education history or Skill groups. The UI delete buttons are disabled when list size is ≤ 1. Even if the UI constraint is bypassed, the Zustand store actions (removeEducation, removeSkillGroup) enforce a length <= 1 block and silently fail.

Steps to Reproduce

  1. Go to /editor/resume/[id].
  2. Delete entries in the Education or Skills section until only one remains.
  3. Observe that the delete button is disabled.
  4. Try to invoke the deletion directly or inspect the store: the delete action will silently return the current state without removing the last entry.

Expected Behavior

Users should be allowed to delete all items and clear their education/skills list completely (i.e. reduce the array length to 0).

Environment Information

  • OS: Windows
  • Browser: Chrome / Edge
  • Node.js: 20.x

Relevant Logs

No response

Proposed Fix / Suggestions

  1. Update Zustand Store (resume-store.ts): Remove the check checking if length is <= 1.
  2. Update UI Components (EducationSection.tsx & SkillsSection.tsx): Allow deleting down to 0.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfrontendUI/client-side code

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions