Skip to content

Conversation

@AnshulPatil2005
Copy link

PR Title format:[Fix] Resolve error handling for duplicate option label

Description

This PR fixes the duplicate option UX by showing a toast error when a user adds an option label that already exists.

Related Tickets & Documents

Closes #182

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • [ x] Bug Fix
  • Optimization
  • Documentation Update

Steps to QA

1.Go to Dataset Settings → Questions.
2.Add a new option label that already exists.
3.Confirm a toast appears saying “Option already exists” and the option is not added

Added/updated tests?

  • Yes
  • No, and this is why: UI/UX change
  • I need help with writing tests

Added/updated documentations?

  • Yes
  • No, and this is why: UI/UX change
  • I need help with writing docs

Checklist

@AnshulPatil2005 AnshulPatil2005 requested a review from a team as a code owner January 7, 2026 23:53
@AnshulPatil2005
Copy link
Author

**this change just adds a toast notification and doesn't raise an error state

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.

[BUG-UI/UX]Show error message when duplicate label option is added

1 participant