We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa6720b commit 57e3051Copy full SHA for 57e3051
1 file changed
apps/web/src/features/upload/utils.ts
@@ -254,7 +254,7 @@ export function interpretZodValue(
254
case 'ZodSet':
255
if (entry.startsWith('SET(')) {
256
const setData = extractSetEntry(entry);
257
- return { success: true, value: new Set(setData.split(',')) };
+ return { success: true, value: new Set(setData.split(',').map((s) => s.trim())) };
258
}
259
return { message: `Invalid ZodSet: ${entry}`, success: false };
260
case 'ZodString':
0 commit comments