Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prevent user from deleting the last training data #613 #621

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sinjup
Copy link

@sinjup sinjup commented Aug 26, 2024

According to this discussion, if all training data is deleted, the option to add new training data doesn't appear in the UI. This creates a problem where users delete all their training data and then can't add new data due to the missing UI interface. This PR addresses the issue by preventing the deletion of the last remaining training data row, ensuring at least one row is always present, which resolves the problem.

@sinjup
Copy link
Author

sinjup commented Aug 26, 2024

@zainhoda Please review

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