We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f041717 commit 81fcf02Copy full SHA for 81fcf02
1 file changed
apps/web/src/features/upload/utils.ts
@@ -251,7 +251,9 @@ export function interpretZodObjectValue(
251
const recordArrayObject: { [key: string]: any } = {};
252
253
const record = listData.split(',');
254
-
+ if (!(zList.length === zKeys.length && zList.length === record.length)) {
255
+ return { message: `Incorrect number of entries for record array`, success: false };
256
+ }
257
for (let i = 0; i < record.length; i++) {
258
// TODO - make sure this is defined
259
const recordValue = record[i]!.split(':')[1]!;
0 commit comments