bug fix
parent
7b91f555d4
commit
2cb4ae0492
|
@ -137,7 +137,9 @@ export function MyEmailFormInput() {
|
||||||
);
|
);
|
||||||
} */
|
} */
|
||||||
|
|
||||||
export function MyCalendarMaxFutureBookingDaysFormInput({ formItemName }) {
|
export function MyCalendarMaxFutureBookingDaysFormInput({
|
||||||
|
formItemName = "calendarMaxFutureBookingDays",
|
||||||
|
}) {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const appContext = useAppContext();
|
const appContext = useAppContext();
|
||||||
|
|
||||||
|
@ -162,7 +164,9 @@ export function MyCalendarMaxFutureBookingDaysFormInput({ formItemName }) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function MyCalendarMinEarliestBookingTimeFormInput({ formItem }) {
|
export function MyCalendarMinEarliestBookingTimeFormInput({
|
||||||
|
formItem = "calendarMinEarliestBookingTime",
|
||||||
|
}) {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -387,6 +387,12 @@ function ModalAddEditEmployee({
|
||||||
body.email = formEmail;
|
body.email = formEmail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(
|
||||||
|
"max",
|
||||||
|
formCalendarMaxFutureBookingDays,
|
||||||
|
modalOptions.selectedEmployee.maxFutureBookingDays
|
||||||
|
);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
formCalendarMaxFutureBookingDays !==
|
formCalendarMaxFutureBookingDays !==
|
||||||
modalOptions.selectedEmployee.maxFutureBookingDays
|
modalOptions.selectedEmployee.maxFutureBookingDays
|
||||||
|
@ -423,11 +429,7 @@ function ModalAddEditEmployee({
|
||||||
|
|
||||||
fetchEmployees();
|
fetchEmployees();
|
||||||
})
|
})
|
||||||
.catch((errStatus) => {
|
.catch(() => setIsRequesting(false));
|
||||||
console.log(errStatus);
|
|
||||||
|
|
||||||
setIsRequesting(false);
|
|
||||||
});
|
|
||||||
})
|
})
|
||||||
.catch(() =>
|
.catch(() =>
|
||||||
showInputsInvalidNotification(notificationApi, t)
|
showInputsInvalidNotification(notificationApi, t)
|
||||||
|
|
Loading…
Reference in New Issue