Skip to content

Commit

Permalink
Fix schema handling in QuerySource.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkan1 committed May 6, 2024
1 parent 156362d commit 2c27db5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/app/pages/queries/QuerySource.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ function QuerySource(props) {
data-executing={isQueryExecuting ? "true" : null}
syntax={dataSource ? dataSource.syntax : null}
value={query.query}
schema={schema}
schema={schema.length && schema[0].name ? schema : null}
autocompleteEnabled={autocompleteAvailable && autocompleteEnabled}
onChange={handleQueryEditorChange}
onSelectionChange={setSelectedText}
Expand Down

0 comments on commit 2c27db5

Please sign in to comment.