🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
feat(ui): auto-select first operator in filter builder (#2482)
Marc Klingen8b367b1a1030
diff --git a/web/src/features/filters/components/filter-builder.tsx b/web/src/features/filters/components/filter-builder.tsxindex 45048a582f..9c574b172e 100644--- a/web/src/features/filters/components/filter-builder.tsx+++ b/web/src/features/filters/components/filter-builder.tsx@@ -268,11 +268,16 @@ function FilterBuilderForm({value={column ? column.id : ""}disabled={disabled}onValueChange={(value) => {+ const col = columns.find((c) => c.id === value);handleFilterChange({- column: columns.find((c) => c.id === value)?.name,- type: columns.find((c) => c.id === value)?.type,- operator: undefined,+ column: col?.name,+ type: col?.type,+ operator:+ col?.type !== undefined &&+ filterOperators[col.type]?.length > 0+ ? (filterOperators[col.type][0] as any) // operator matches type+ : undefined,value: undefined,key: undefined,},