SangeethKarunaratne / building-sat-

0 stars 0 forks source link

Issue when adding new material to database as an administrator #92

Closed Dilshi830 closed 2 years ago

Dilshi830 commented 2 years ago

Describe the bug

Manage Building-SAT resources > Manage materials

When a new material was added and then a project was opened and the material dropdown was opened, the same new material was duplicated thrice.

This should not happen.

Screenshot (133)

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

SangeethKarunaratne commented 2 years ago

@Dilshi830 This is because you've click on the submit button thrice, think that it did not get saved. The window will close now once you click the submit button

Dilshi830 commented 2 years ago

Works