From fd2c4982c03a6540b805744f6c274033dd7f79f1 Mon Sep 17 00:00:00 2001 From: Ivan Vasilov Date: Wed, 4 Dec 2024 15:03:37 +0100 Subject: [PATCH] fix: Remove the lowercasing when comparing names of cronjobs (#30895) Remove the lowercasing when comparing names. Co-authored-by: Wen Bo Xie <5532241+w3b6x9@users.noreply.github.com> --- .../interfaces/Integrations/CronJobs/CreateCronJobSheet.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/CreateCronJobSheet.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CreateCronJobSheet.tsx index 2264928e7e338..1088e079d951d 100644 --- a/apps/studio/components/interfaces/Integrations/CronJobs/CreateCronJobSheet.tsx +++ b/apps/studio/components/interfaces/Integrations/CronJobs/CreateCronJobSheet.tsx @@ -215,8 +215,7 @@ export const CreateCronJobSheet = ({ const onSubmit: SubmitHandler = async ({ name, schedule, values }) => { // job names should be unique const nameExists = cronJobs?.some( - (job) => - job.jobname.toLowerCase() === name.toLowerCase() && job.jobname !== selectedCronJob?.jobname + (job) => job.jobname === name && job.jobname !== selectedCronJob?.jobname ) if (nameExists) { form.setError('name', {