Skip to content

Commit

Permalink
Fix missing mongo selection field for data measurements
Browse files Browse the repository at this point in the history
  • Loading branch information
CapCaWork committed Jul 1, 2021
1 parent 869bf25 commit ed97cad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/QueryEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ export class QueryEditor extends PureComponent<Props> {
const metricsTypeValue = queryType;

const showQueryTypes = project.value && cluster.value;
const showMongoField =
showQueryTypes && (metricsTypeValue === 'process_measurements' || metricsTypeValue === 'database_measurements');
const showMongoField = showQueryTypes;
const showDatabaseField = showQueryTypes && metricsTypeValue === 'database_measurements';
const showDiskField = showQueryTypes && metricsTypeValue === 'disk_measurements';
const showDimensionsField = showQueryTypes;
Expand Down

0 comments on commit ed97cad

Please sign in to comment.