Skip to content

Commit

Permalink
Allow for empty query in editor
Browse files Browse the repository at this point in the history
Fixes the annoying behaviour that 'tagged "riemann"' always appeared
automagically when clearing the field.
  • Loading branch information
faxm0dem committed Nov 18, 2020
1 parent 520fa34 commit 8233745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QueryEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class QueryEditor extends PureComponent<Props> {
<div className="gf-form-max-width-25">
<FormField
labelWidth={10}
value={queryText || 'tagged "riemann"'}
value={queryText || ''}
onChange={this.onQueryTextChange}
label="Query Text"
tooltip="Riemann query. See test suite for examples https://github.com/riemann/riemann/blob/master/test/riemann/query_test.clj"
Expand Down

0 comments on commit 8233745

Please sign in to comment.