Skip to content

Fix duplicate task completion by assigning unique IDs#2

Open
Vedant43hh wants to merge 1 commit into
apni-coding:mainfrom
Vedant43hh:fix-duplicate-task-id
Open

Fix duplicate task completion by assigning unique IDs#2
Vedant43hh wants to merge 1 commit into
apni-coding:mainfrom
Vedant43hh:fix-duplicate-task-id

Conversation

@Vedant43hh

Copy link
Copy Markdown

Description

This PR fixes a bug where multiple newly created tasks shared the same ID, causing multiple tasks to be marked as completed when only one checkbox was selected.

Changes Made

  • Assigned a unique ID to each newly created task before storing it in the local state.
  • Preserved the existing completion logic while ensuring each task can be updated independently.

Result

  • Each newly added task now has a unique identifier.
  • Completing one task only affects that specific task.
  • Existing functionality remains unchanged.

Fixes #1

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.

The completion of task is bugged

2 participants