Skip to content

Commit

Permalink
fix: Remove the lowercasing when comparing names of cronjobs (#30895)
Browse files Browse the repository at this point in the history
Remove the lowercasing when comparing names.

Co-authored-by: Wen Bo Xie <5532241+w3b6x9@users.noreply.github.com>
  • Loading branch information
ivasilov and w3b6x9 authored Dec 4, 2024
1 parent f2a51f1 commit fd2c498
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,7 @@ export const CreateCronJobSheet = ({
const onSubmit: SubmitHandler<CreateCronJobForm> = 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', {
Expand Down

0 comments on commit fd2c498

Please sign in to comment.