Skip to content

Commit 3bda4b8

Browse files
committed
fix: add default empty array for custom instruments in upload form
1 parent e4c0512 commit 3bda4b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/frontend/src/modules/song/components/client/SongForm.zod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const SongFormSchema = zod.object({
5858
error: `Description must be less than ${UPLOAD_CONSTANTS.description.maxLength} characters`,
5959
}),
6060
thumbnailData: thumbnailDataSchema,
61-
customInstruments: zod.array(zod.string()),
61+
customInstruments: zod.array(zod.string()).default([]),
6262
license: zod
6363
.enum(['none', ...licenses] as const)
6464
.refine((v) => v !== 'none', {

0 commit comments

Comments
 (0)