We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81fcf02 commit ea4b46bCopy full SHA for ea4b46b
1 file changed
apps/web/src/features/upload/utils.ts
@@ -251,6 +251,9 @@ export function interpretZodObjectValue(
251
const recordArrayObject: { [key: string]: any } = {};
252
253
const record = listData.split(',');
254
+ if (record.some((str) => str === '')) {
255
+ return { message: `One or more of the record array fields was left empty`, success: false };
256
+ }
257
if (!(zList.length === zKeys.length && zList.length === record.length)) {
258
return { message: `Incorrect number of entries for record array`, success: false };
259
}
0 commit comments