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

Multiple beds can be created with the same name #1529

Closed
Pranshu1902 opened this issue Aug 19, 2023 · 1 comment
Closed

Multiple beds can be created with the same name #1529

Pranshu1902 opened this issue Aug 19, 2023 · 1 comment

Comments

@Pranshu1902
Copy link
Contributor

Describe the bug
When we use the feature to create multiple beds at the same time, it results in beds having same names which doesn't allow the user to edit or delete those beds because of multiple ids.

Related to #6112

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://care.coronasafe.in/facility/657c32be-d584-476c-9ce2-0412f0e7692e/location/0ca0bc97-6b20-42e9-8a7a-f03cd8692f5f/beds
  2. Create a bed with the name Bed 1
  3. Now create another bed with the name Bed but set the number of beds to 2
  4. See error

Expected behavior
Before the algorithms automatically adds 1 at the end of each bed name, it should check whether that name has already been taken or not.

Screenshots
image
image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@Pranshu1902
Copy link
Contributor Author

Pranshu1902 commented Dec 27, 2023

Similar to #1782
Fixed in #1783

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 a pull request may close this issue.

1 participant