diff --git a/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomMetricWidget/CustomMetricWidget.tsx b/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomMetricWidget/CustomMetricWidget.tsx index fa1a4b168..8c6657ff4 100644 --- a/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomMetricWidget/CustomMetricWidget.tsx +++ b/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomMetricWidget/CustomMetricWidget.tsx @@ -48,7 +48,7 @@ function CustomMetricWidget(props: Props) { const colors = compare ? Styles.compareColors : Styles.colors; const params = customParams(period.rangeName) const gradientDef = Styles.gradientDef(); - const metricParams = { ...params, metricId: metric.metricId, viewType: 'lineChart' } + const metricParams = { ...params, metricId: metric.metricId, viewType: 'lineChart', startDate: period.start, endDate: period.end } useEffect(() => { new APIClient()['post']('/custom_metrics/chart', { ...metricParams, q: metric.name }) diff --git a/frontend/app/duck/search.js b/frontend/app/duck/search.js index e8472d868..d615b0c3a 100644 --- a/frontend/app/duck/search.js +++ b/frontend/app/duck/search.js @@ -197,7 +197,7 @@ export const clearSearch = () => (dispatch, getState) => { } export const addFilter = (filter) => (dispatch, getState) => { - filter.value = filter.value && filter.value.length === 0 ? filter.value : ['']; + // filter.value = filter.value && filter.value.length === 0 ? filter.value : ['']; const instance = getState().getIn([ 'search', 'instance']); const filters = instance.filters.push(filter); return dispatch(edit(instance.set('filters', filters)));