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

Index for subsequent employee is invalid after the first employee is removed from employees list #6

Open
chydarren opened this issue Oct 28, 2022 · 0 comments

Comments

@chydarren
Copy link
Owner

chydarren commented Oct 28, 2022

Issue

After I attempted to remove the first employee from the employee list, when I add a new employee I am expected to see the new employee be given an index number of 1. However, the program gave an index number 2 to the new employee instead.

Suggestion

Maybe generate the index number dynamically when listing.

Output

2022-10-28 (9).png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant