fix(timesheets): fix issue where timesheets do not reload if applying presets with no other changes

This commit is contained in:
Nic D 2026-02-23 14:58:14 -05:00
parent 2b1b0dbcbd
commit e6d2dac092

View File

@ -50,10 +50,11 @@ export const useTimesheetApi = () => {
if (timesheets !== initialTimesheets) { if (timesheets !== initialTimesheets) {
await shiftStore.updateShifts(employeeEmail); await shiftStore.updateShifts(employeeEmail);
await shiftStore.createNewShifts(employeeEmail); await shiftStore.createNewShifts(employeeEmail);
await timesheetStore.getTimesheetsByOptionalEmployeeEmail(employeeEmail);
await timesheetStore.getPaidTimeOffTotalsWithOptionalEmployeeEmail(employeeEmail);
} }
await timesheetStore.getTimesheetsByOptionalEmployeeEmail(employeeEmail);
await timesheetStore.getPaidTimeOffTotalsWithOptionalEmployeeEmail(employeeEmail);
timesheetStore.is_loading = false; timesheetStore.is_loading = false;
} }