Skip to content

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

chore(filters): improve filter table type safety (#3078)

marliessophiee0986186147f
diff --git a/web/src/features/filters/hooks/useFilterState.ts b/web/src/features/filters/hooks/useFilterState.ts
index f6bd94332d..b662883cc0 100644
--- a/web/src/features/filters/hooks/useFilterState.ts
+++ b/web/src/features/filters/hooks/useFilterState.ts
@@ -32,7 +32,7 @@ const getCommaArrayParam = (table: TableName) => ({
f.type === "numberObject" || f.type === "stringObject" ? f.key : ""
};${f.operator};${encodeURIComponent(
f.type === "datetime"
- ? f.value.toISOString()
+ ? new Date(f.value).toISOString()
: f.type === "stringOptions"
? f.value.join("|")
: f.type === "arrayOptions"