Fix formatting and indentation issues in StatementGenerator.ts and LogsViewer.tsx

This commit is contained in:
Simon Larsen 2024-02-29 18:38:27 +00:00
parent d1efe9ef84
commit 2ae8bd0da4
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
2 changed files with 7 additions and 7 deletions

View File

@ -399,9 +399,11 @@ export default class StatementGenerator<TBaseModel extends AnalyticsBaseModel> {
}}`
);
} else if (value instanceof IsNull) {
if(tableColumn.type === TableColumnType.Text) {
whereStatement.append(SQL`AND (${key} IS NULL OR ${key} = '')`);
}else{
if (tableColumn.type === TableColumnType.Text) {
whereStatement.append(
SQL`AND (${key} IS NULL OR ${key} = '')`
);
} else {
whereStatement.append(SQL`AND ${key} IS NULL`);
}
} else if (

View File

@ -52,11 +52,9 @@ const DashboardLogsViewer: FunctionComponent<ComponentProps> = (
type GetQueryFunction = () => Query<Log>;
const getQuery: GetQueryFunction = (): Query<Log> => {
const query: Query<Log> = {
};
const query: Query<Log> = {};
if(props.telemetryServiceIds && props.telemetryServiceIds.length > 0) {
if (props.telemetryServiceIds && props.telemetryServiceIds.length > 0) {
query.serviceId = new Includes(props.telemetryServiceIds);
}