Skip to content

Commit df15dcd

Browse files
committed
chore: improve docs
1 parent 7ee7d6a commit df15dcd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

apps/web/src/routes/_app/upload/$instrumentId.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ const RouteComponent = () => {
7171
await uploadInstrumentRecordsMutation.mutateAsync(reformattedData);
7272
setFile(null);
7373
} catch (error) {
74+
console.error(error);
7475
void navigate({
7576
search: {
7677
error: {

apps/web/src/utils/upload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ export namespace Zod4 {
706706
export function generateSampleData(convertResult: ZodConvertResult): string {
707707
switch (convertResult.typeName) {
708708
case 'array': {
709-
return `RECORD_ARRAY(${generateSampleData(convertResult.innerType)};)`;
709+
return `RECORD_ARRAY(${generateSampleData(convertResult.innerType)}; ...)`;
710710
}
711711
case 'boolean':
712712
return formatOptionalEntry('true/false', convertResult.isOptional);

0 commit comments

Comments
 (0)