File tree Expand file tree Collapse file tree
apps/web/src/features/upload Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -547,13 +547,16 @@ export async function processInstrumentCSV(
547547 } ;
548548
549549 if ( typeNameResult . typeName === 'ZodArray' || typeNameResult . typeName === 'ZodObject' ) {
550- if ( typeNameResult . multiKeys && typeNameResult . multiValues )
550+ if ( typeNameResult . multiKeys && typeNameResult . multiValues ) {
551551 interpreterResult = interpretZodObjectValue (
552552 rawValue ,
553553 typeNameResult . isOptional ,
554554 typeNameResult . multiValues ,
555555 typeNameResult . multiKeys
556556 ) ;
557+ } else {
558+ interpreterResult . message = 'Record Array keys do not exist' ;
559+ }
557560 // TODO - what if this is not the case? Once generics are handled correctly should not be a problem
558561 } else {
559562 interpreterResult = interpretZodValue ( rawValue , typeNameResult . typeName , typeNameResult . isOptional ) ;
You can’t perform that action at this time.
0 commit comments