From 061a01df56affa1d714beef8c12bac3d57049284 Mon Sep 17 00:00:00 2001 From: Christiane Heiligers Date: Sat, 11 May 2019 12:08:27 -0700 Subject: [PATCH] Adds default empty string to query.query passed into QueryBar --- .../public/components/panel_config/gauge.js | 6 +++--- .../public/components/panel_config/markdown.js | 9 ++++----- .../public/components/panel_config/metric.js | 9 ++++----- .../public/components/panel_config/table.js | 16 +++++++++++----- .../public/components/panel_config/top_n.js | 4 ++-- 5 files changed, 24 insertions(+), 20 deletions(-) diff --git a/src/legacy/core_plugins/metrics/public/components/panel_config/gauge.js b/src/legacy/core_plugins/metrics/public/components/panel_config/gauge.js index ed7fce21b4ac6..d469d5b1b7256 100644 --- a/src/legacy/core_plugins/metrics/public/components/panel_config/gauge.js +++ b/src/legacy/core_plugins/metrics/public/components/panel_config/gauge.js @@ -97,7 +97,7 @@ class GaugePanelConfigUi extends Component { const { intl } = this.props; const defaults = { gauge_max: '', - filter: '', + filter: { query: '', language: uiSettingsQueryLanguage }, gauge_style: 'circle', gauge_inner_width: '', gauge_width: '' @@ -169,8 +169,8 @@ class GaugePanelConfigUi extends Component { > ); @@ -248,10 +254,10 @@ class TablePanelConfig extends Component { >