Skip to content

Commit aebdf9b

Browse files
committed
coderabbit correction
1 parent f39e35c commit aebdf9b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

apps/roam/src/components/Export.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,16 @@ const ExportDialog: ExportDialogComponent = ({
692692
type: "export-error",
693693
userMessage:
694694
"Looks like there was an error. The team has been notified.",
695-
context: { activeExportType, filename, results },
695+
context: {
696+
activeExportType,
697+
filename,
698+
resultsCount: Array.isArray(results)
699+
? results.length
700+
: undefined,
701+
sampleUids: Array.isArray(results)
702+
? results.slice(0, 10).map((r) => r.uid)
703+
: undefined,
704+
},
696705
});
697706
setDialogOpen(true);
698707
setError((e as Error).message);

0 commit comments

Comments
 (0)