Add templates back to query text editor

pull/1855/head
Andrew Watkins 2017-08-14 14:15:48 -07:00
parent fee6b5e6b5
commit 97be9399ff
1 changed files with 7 additions and 0 deletions

View File

@ -17,6 +17,7 @@ const QueryMaker = ({
actions,
queries,
timeRange,
templates,
onAddQuery,
activeQuery,
onDeleteQuery,
@ -43,6 +44,7 @@ const QueryMaker = ({
activeQuery.id,
actions.editRawTextAsync
)}
templates={templates}
/>
<SchemaExplorer
query={activeQuery}
@ -85,6 +87,11 @@ QueryMaker.propTypes = {
activeQueryIndex: number,
activeQuery: shape({}),
onAddQuery: func.isRequired,
templates: arrayOf(
shape({
tempVar: string.isRequired,
})
).isRequired,
}
export default QueryMaker