fix
All checks were successful
Build And Deploy Main / build-and-deploy (push) Successful in 36s

This commit is contained in:
2026-03-19 16:04:16 -04:00
parent dd5b9f9e02
commit 45079b0793
2 changed files with 18 additions and 2 deletions

View File

@@ -218,7 +218,15 @@ const EventsList = () => {
const goToCreateNew = () => {
if (!AuthService.canEditMedicalEvents()) return;
navigate(`/medical/events`)
const seedEvent = {
data: {},
type: 'medical',
status: 'active',
start_time: new Date(),
stop_time: new Date(),
edit_history: []
};
navigate(`/medical/events/create-from-request?event=${encodeURIComponent(JSON.stringify(seedEvent))}`);
}
const goToEventsCalendar = () => {

View File

@@ -355,7 +355,15 @@ const EventsMultipleList = () => {
const goToCreateNew = () => {
if (!AuthService.canEditMedicalEvents()) return;
navigate(`/medical/events`)
const seedEvent = {
data: {},
type: 'medical',
status: 'active',
start_time: new Date(),
stop_time: new Date(),
edit_history: []
};
navigate(`/medical/events/create-from-request?event=${encodeURIComponent(JSON.stringify(seedEvent))}`);
}