🪢 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
fix(ui): refine date range dropdown options in dashboard (#2784)
Richard Krümmeld0e33c1c34e0
diff --git a/web/src/components/date-range-dropdowns.tsx b/web/src/components/date-range-dropdowns.tsxindex ac374cb6f9..cb515c7def 100644--- a/web/src/components/date-range-dropdowns.tsx+++ b/web/src/components/date-range-dropdowns.tsx@@ -75,13 +75,14 @@ export const DashboardDateRangeDropdown: React.FC<});};+ const options =+ selectedOption === DASHBOARD_AGGREGATION_PLACEHOLDER+ ? [...DASHBOARD_AGGREGATION_OPTIONS, DASHBOARD_AGGREGATION_PLACEHOLDER]+ : [...DASHBOARD_AGGREGATION_OPTIONS];return (<BaseDateRangeDropdownselectedOption={selectedOption}- options={[- ...DASHBOARD_AGGREGATION_OPTIONS,- DASHBOARD_AGGREGATION_PLACEHOLDER,- ]}+ options={options}onSelectionChange={onDropDownSelection}/>);