fix: event type empty title validation (#23220)
This commit is contained in:
@@ -19,7 +19,7 @@ const calVideoSettingsSchema = z
|
||||
.nullable();
|
||||
|
||||
export const createEventTypeInput = z.object({
|
||||
title: z.string().min(1),
|
||||
title: z.string().trim().min(1),
|
||||
slug: imports.eventTypeSlug,
|
||||
description: z.string().nullish(),
|
||||
length: z.number().int().min(MIN_EVENT_DURATION_MINUTES).max(MAX_EVENT_DURATION_MINUTES),
|
||||
@@ -45,7 +45,7 @@ export const createEventTypeInput = z.object({
|
||||
export const EventTypeDuplicateInput = z.object({
|
||||
id: z.number(),
|
||||
slug: z.string(),
|
||||
title: z.string().min(1),
|
||||
title: z.string().trim().min(1),
|
||||
description: z.string(),
|
||||
length: z.number().int().min(MIN_EVENT_DURATION_MINUTES).max(MAX_EVENT_DURATION_MINUTES),
|
||||
teamId: z.number().nullish(),
|
||||
|
||||
Reference in New Issue
Block a user