Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
MGJamJam committed Jun 19, 2024
1 parent f7e65d8 commit faaa259
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bitmovin-analytics-datasource/src/components/QueryEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ export function QueryEditor(props: Props) {
* as an indicator of whether an old JSON model was loaded.
*/
useEffect(() => {
if (props.query.resultFormat == null) return;
if (props.query.resultFormat == null) {
return;
}
console.log('in the plugin conversion');
//TODO why is it not working for more than one queries in a dashboard? Why do I need to first reset to the ewnewst graph

// The old Angular plugin did the filter value conversion in the query method before
Expand Down Expand Up @@ -86,7 +89,7 @@ export function QueryEditor(props: Props) {

props.onChange({ ...props.query, filter: convertedFilters, interval: interval, resultFormat: undefined });
props.onRunQuery();
}, []);
}, [props.query]);

const query = defaults(props.query, DEFAULT_QUERY);

Expand Down

0 comments on commit faaa259

Please sign in to comment.