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 appContext = useAppContext();
|
||||
|
||||
|
@ -162,7 +164,9 @@ export function MyCalendarMaxFutureBookingDaysFormInput({ formItemName }) {
|
|||
);
|
||||
}
|
||||
|
||||
export function MyCalendarMinEarliestBookingTimeFormInput({ formItem }) {
|
||||
export function MyCalendarMinEarliestBookingTimeFormInput({
|
||||
formItem = "calendarMinEarliestBookingTime",
|
||||
}) {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
|
|
|
@ -387,6 +387,12 @@ function ModalAddEditEmployee({
|
|||
body.email = formEmail;
|
||||
}
|
||||
|
||||
console.log(
|
||||
"max",
|
||||
formCalendarMaxFutureBookingDays,
|
||||
modalOptions.selectedEmployee.maxFutureBookingDays
|
||||
);
|
||||
|
||||
if (
|
||||
formCalendarMaxFutureBookingDays !==
|
||||
modalOptions.selectedEmployee.maxFutureBookingDays
|
||||
|
@ -423,11 +429,7 @@ function ModalAddEditEmployee({
|
|||
|
||||
fetchEmployees();
|
||||
})
|
||||
.catch((errStatus) => {
|
||||
console.log(errStatus);
|
||||
|
||||
setIsRequesting(false);
|
||||
});
|
||||
.catch(() => setIsRequesting(false));
|
||||
})
|
||||
.catch(() =>
|
||||
showInputsInvalidNotification(notificationApi, t)
|
||||
|
|
Loading…
Reference in New Issue