mirror of
https://github.com/open-reception/appointment-booking-software.git
synced 2026-09-28 19:54:50 +02:00
Calendar BookAppointment: Preselect agent, when only one is available
This commit is contained in:
+6
-1
@@ -44,7 +44,12 @@
|
||||
newAppointment = {
|
||||
...data,
|
||||
};
|
||||
step = "agent";
|
||||
if (item.availableAgents && item.availableAgents.length === 1) {
|
||||
const onlyAgent = item.availableAgents[0];
|
||||
proceed({ ...data, agentId: onlyAgent.id });
|
||||
} else {
|
||||
step = "agent";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user