fix(timesheet): attempt to fix issue where employee email is not passed properly
This commit is contained in:
parent
bff6ce1f31
commit
7e4b163aa4
|
|
@ -33,7 +33,6 @@
|
|||
const timesheet_store = useTimesheetStore();
|
||||
const preset_mouseover = ref(false);
|
||||
const shift_error_message = ref<string | undefined>();
|
||||
const employeeEmail = inject<string>('employeeEmail');
|
||||
|
||||
// ================== Methods ==================
|
||||
|
||||
|
|
@ -42,7 +41,7 @@
|
|||
shift.id = 0;
|
||||
emit('deleteUnsavedShift');
|
||||
} else {
|
||||
await shift_api.deleteShiftById(shift.id, employeeEmail);
|
||||
await shift_api.deleteShiftById(shift.id, timesheet_store.current_pay_period_overview?.email ?? undefined);
|
||||
}
|
||||
|
||||
if (day.shifts.length < 2 && shift_error_message.value !== undefined) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user