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:
authored and GitHub committed 2026-01-13 18:29:58 +00:00
1 parent f32ea8b4c5
commit c13fce4483
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,