From 2ae8bd0da409a5b97ace04a3fa06b8921478c58d Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Thu, 29 Feb 2024 18:38:27 +0000 Subject: [PATCH] Fix formatting and indentation issues in StatementGenerator.ts and LogsViewer.tsx --- .../Utils/AnalyticsDatabase/StatementGenerator.ts | 8 +++++--- Dashboard/src/Components/LogsViewer/LogsViewer.tsx | 6 ++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CommonServer/Utils/AnalyticsDatabase/StatementGenerator.ts b/CommonServer/Utils/AnalyticsDatabase/StatementGenerator.ts index 5247316d71..b1c07ab52d 100644 --- a/CommonServer/Utils/AnalyticsDatabase/StatementGenerator.ts +++ b/CommonServer/Utils/AnalyticsDatabase/StatementGenerator.ts @@ -399,9 +399,11 @@ export default class StatementGenerator { }}` ); } 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 ( diff --git a/Dashboard/src/Components/LogsViewer/LogsViewer.tsx b/Dashboard/src/Components/LogsViewer/LogsViewer.tsx index a935790d6a..d15f03a15a 100644 --- a/Dashboard/src/Components/LogsViewer/LogsViewer.tsx +++ b/Dashboard/src/Components/LogsViewer/LogsViewer.tsx @@ -52,11 +52,9 @@ const DashboardLogsViewer: FunctionComponent = ( type GetQueryFunction = () => Query; const getQuery: GetQueryFunction = (): Query => { - const query: Query = { - - }; + const query: Query = {}; - if(props.telemetryServiceIds && props.telemetryServiceIds.length > 0) { + if (props.telemetryServiceIds && props.telemetryServiceIds.length > 0) { query.serviceId = new Includes(props.telemetryServiceIds); }