fix(timesheets): fix issue where timesheets do not reload if applying presets with no other changes
This commit is contained in:
parent
2b1b0dbcbd
commit
e6d2dac092
|
|
@ -50,9 +50,10 @@ export const useTimesheetApi = () => {
|
|||
if (timesheets !== initialTimesheets) {
|
||||
await shiftStore.updateShifts(employeeEmail);
|
||||
await shiftStore.createNewShifts(employeeEmail);
|
||||
}
|
||||
|
||||
await timesheetStore.getTimesheetsByOptionalEmployeeEmail(employeeEmail);
|
||||
await timesheetStore.getPaidTimeOffTotalsWithOptionalEmployeeEmail(employeeEmail);
|
||||
}
|
||||
|
||||
timesheetStore.is_loading = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user