fix: changes to error on schedule name empty save (#24044)
* fix #21709: change to error on schedule name empty save * fix comments * minor enahncemnts --------- Co-authored-by: Volnei Munhoz <volnei.munhoz@gmail.com> Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com>
This commit is contained in:
4 files changed
+7
-2
No files matched your search
@@ -120,6 +120,10 @@ export const AvailabilitySettingsWebWrapper = ({
|
||||
scheduleId && deleteMutation.mutate({ scheduleId });
|
||||
}}
|
||||
handleSubmit={async ({ dateOverrides, ...values }) => {
|
||||
if (!values.name.trim()) {
|
||||
showToast(t("schedule_name_cannot_be_empty"), "error");
|
||||
return;
|
||||
}
|
||||
scheduleId &&
|
||||
updateMutation.mutate({
|
||||
scheduleId,
|
||||
|
||||
Reference in new issue
Block a user