From e2963e591a82572ee5a282b0d50445b33060fe3e Mon Sep 17 00:00:00 2001 From: Andrew Watkins Date: Fri, 7 Apr 2017 13:52:10 -0600 Subject: [PATCH] Pass config to raw query editor --- ui/src/data_explorer/components/QueryEditor.js | 2 +- ui/src/data_explorer/components/RawQueryEditor.js | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ui/src/data_explorer/components/QueryEditor.js b/ui/src/data_explorer/components/QueryEditor.js index 4e7983be6..65d2b4b6d 100644 --- a/ui/src/data_explorer/components/QueryEditor.js +++ b/ui/src/data_explorer/components/QueryEditor.js @@ -78,7 +78,7 @@ const QueryEditor = React.createClass({ return (
- + {this.renderLists()}
diff --git a/ui/src/data_explorer/components/RawQueryEditor.js b/ui/src/data_explorer/components/RawQueryEditor.js index 636a6f85a..bb52d4b60 100644 --- a/ui/src/data_explorer/components/RawQueryEditor.js +++ b/ui/src/data_explorer/components/RawQueryEditor.js @@ -6,10 +6,16 @@ import {QUERY_TEMPLATES} from 'src/data_explorer/constants' const ENTER = 13 const ESCAPE = 27 +const { + func, + shape, + string, +} = PropTypes const RawQueryEditor = React.createClass({ propTypes: { - query: PropTypes.string.isRequired, - onUpdate: PropTypes.func.isRequired, + query: string.isRequired, + onUpdate: func.isRequired, + config: shape().isRequired, }, getInitialState() {