fix(timesheet-approval): minor fix to timesheet reload after changes to employee timesheet
was reloading users timesheets instead of employees after update or create
This commit is contained in:
parent
8231b3084d
commit
75060a2228
|
|
@ -25,7 +25,7 @@ export const useShiftApi = () => {
|
|||
const create_success = await shift_store.createNewShifts(employee_email);
|
||||
|
||||
if (create_success || update_success){
|
||||
await timesheet_store.getTimesheetsByOptionalEmployeeEmail(auth_store.user?.email ?? '');
|
||||
await timesheet_store.getTimesheetsByOptionalEmployeeEmail(employee_email);
|
||||
}
|
||||
|
||||
timesheet_store.is_loading = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user