@@ -49,8 +49,8 @@ export interface LogContextUIProps extends LogContextProps {
49
49
50
50
export function LogContextUI ( props : LogContextUIProps ) {
51
51
const builder = useQueryBuilder ( ) ;
52
- const { query, parsedQuery, setQuery, setParsedQuery} = builder ;
53
- const [ canRunQuery , setCanRunQuery ] = useState < boolean > ( false ) ;
52
+ const { query, /* parsedQuery,*/ setQuery, setParsedQuery} = builder ;
53
+ const [ canRunQuery , /* setCanRunQuery*/ ] = useState < boolean > ( true ) ;
54
54
const { row, origQuery, updateQuery, runContextQuery } = props ;
55
55
56
56
const fieldsSuggestionTimeRange = useMemo ( ( ) => createContextTimeRange ( row . timeEpochMs ) , [ row ] )
@@ -60,9 +60,11 @@ export function LogContextUI(props: LogContextUIProps ){
60
60
setQuery ( origQuery ?. query || '' )
61
61
} , [ setQuery , origQuery ] )
62
62
63
- useEffect ( ( ) => {
64
- setCanRunQuery ( ! parsedQuery . parseError )
65
- } , [ parsedQuery , setCanRunQuery ] )
63
+ // FIXME : query parser used for lint is not reliable enough
64
+ // to use as a filter for wrong queries. Disabled for now.
65
+ // useEffect(()=>{
66
+ // <setCanRunQuery(!parsedQuery.parseError)
67
+ // }, [parsedQuery, setCanRunQuery])
66
68
67
69
const runQuery = useCallback ( ( ) => {
68
70
if ( runContextQuery ) {
0 commit comments