Skip to content

Commit

Permalink
Stop running query automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
idastambuk committed Jan 5, 2024
1 parent 339774d commit 74cd520
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/components/QueryEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function QueryEditor(props: Props) {

// pre-populate query with default data
useEffect(() => {
if (!database || !table || !table) {
if (!database || !table || !measure) {
onChange({
...query,
database: database || defaultDatabase,
Expand All @@ -45,13 +45,6 @@ export function QueryEditor(props: Props) {
onRunQuery();
};

// Trigger query if all the resources are set
useEffect(() => {
if (database && table && measure) {
onRunQuery();
}
}, [database, table, measure, onRunQuery]);

// Databases used both for the selector and editor suggestions
const [databases, setDatabases] = useState<string[]>([]);
useEffect(() => {
Expand Down

0 comments on commit 74cd520

Please sign in to comment.