Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix: Ensure json output for single value csv import (#7763)

Marc Klingene5a04751e1c2
diff --git a/web/src/features/datasets/lib/csvHelpers.ts b/web/src/features/datasets/lib/csvHelpers.ts
index 945bdd9d06..c19d8d690f 100644
--- a/web/src/features/datasets/lib/csvHelpers.ts
+++ b/web/src/features/datasets/lib/csvHelpers.ts
@@ -214,9 +214,6 @@ export function parseColumns(
headerMap: Map<string, number>,
): Prisma.JsonValue {
if (columnNames.length === 0) return null;
- if (columnNames.length === 1) {
- return parseValue(row[headerMap.get(columnNames[0])!]);
- }
return Object.fromEntries(
columnNames.map((col) => [col, parseValue(row[headerMap.get(col)!])]),
);