Fix ableton transformer function call and update export form schema validation

This commit is contained in:
2026-07-13 10:18:41 +02:00
parent 7571a04e58
commit c2b6a3e487
3 changed files with 3 additions and 8 deletions

View File

@@ -12,9 +12,7 @@ export const exportFormSchema = z.object({
format: z.enum(FORMAT_IDS),
abletonVersion: z.enum(['10', '11']),
abletonOneShotPads: z.array(
z.custom<PadCode>(
(value) => typeof value === 'string' && /^[abcd]\d+$/.test(value),
),
z.custom<PadCode>((value) => typeof value === 'string' && /^[abcd]\d+$/.test(value)),
),
projectName: z.string(),
includeArchivedSamples: z.boolean(),