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.
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.