Duplicate appointments created when trying to create a single appointment

Description

The duplicate appointment issue is happening with the multiple clicks on the “Check and Save” Button. When we have low network speed, We are able to click the button multiple times which is actually making multiple create and save appointment calls. Eventually we end up creating duplicate appointments against a patient.

The fix for the issue is to disable the button upon one click. So that it will not allow multiple click and multiple api calls.

We were able to reproduce the issue by keeping the network speed to “Slow 3G” in the Network tab in the chrome dev tools.

PR Link →

Environment

None

Activity

Show:
Himabindu Thungathurty
November 10, 2020, 1:16 AM

has reviewed and approved the PR and got merged by to appointments-frontend master

Assignee

Unassigned

Reporter

Himabindu Thungathurty

Labels

Priority

Major
Configure