fix: update validation logic to ensure category selection is not empty
This commit is contained in:
parent
a7c5da8d9c
commit
5cf6eb191d
@ -25,7 +25,7 @@ export const contentSchema = z.object({
|
||||
.optional()
|
||||
.nullable(),
|
||||
)
|
||||
.refine((data) => !!data, {
|
||||
.refine((data) => data.length, {
|
||||
message: 'Please select a category',
|
||||
}),
|
||||
tags: z
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user