diff --git a/Common/Models/DatabaseModels/Probe.ts b/Common/Models/DatabaseModels/Probe.ts index 0ed5fc6ff1..c68c76dff4 100755 --- a/Common/Models/DatabaseModels/Probe.ts +++ b/Common/Models/DatabaseModels/Probe.ts @@ -40,7 +40,7 @@ export enum ProbeConnectionStatus { @EnableDocumentation() @EnableWorkflow({ - read: true + read: true, }) @TableBillingAccessControl({ create: PlanType.Growth, diff --git a/Common/UI/Components/LongText/LongTextViewer.tsx b/Common/UI/Components/LongText/LongTextViewer.tsx index 05598e779a..9981d40c0d 100644 --- a/Common/UI/Components/LongText/LongTextViewer.tsx +++ b/Common/UI/Components/LongText/LongTextViewer.tsx @@ -2,37 +2,39 @@ import React, { FunctionComponent, ReactElement, useState } from "react"; import Button, { ButtonStyleType } from "../Button/Button"; export interface ComponentProps { - text: string; - disableTruncation?: boolean; + text: string; + disableTruncation?: boolean; } const LongTextViewer: FunctionComponent = ( - props: ComponentProps, + props: ComponentProps, ): ReactElement => { - const [showFullText, setShowFullText] = useState(false); - const characterLimit = 100; + const [showFullText, setShowFullText] = useState(false); + const characterLimit: number = 100; - const shouldTruncate = !props.disableTruncation && props.text.length > characterLimit; - const displayText = shouldTruncate && !showFullText - ? `${props.text.substring(0, characterLimit)}...` - : props.text; + const shouldTruncate: boolean = + !props.disableTruncation && props.text.length > characterLimit; + const displayText: string = + shouldTruncate && !showFullText + ? `${props.text.substring(0, characterLimit)}...` + : props.text; - return ( -
-
{displayText}
+ return ( +
+
{displayText}
- {shouldTruncate && ( -
- ); + {shouldTruncate && ( +
+ ); }; export default LongTextViewer; diff --git a/Common/UI/Components/Table/TableRow.tsx b/Common/UI/Components/Table/TableRow.tsx index 255ba8cf15..b8726c1c83 100644 --- a/Common/UI/Components/Table/TableRow.tsx +++ b/Common/UI/Components/Table/TableRow.tsx @@ -148,9 +148,11 @@ const TableRow: TableRowFunction = ( ) : ( column.noValueMessage || "0%" ) - ): column.type === FieldType.LongText ? ( + ) : column.type === FieldType.LongText ? ( props.item[column.key] ? ( - + ) : ( column.noValueMessage || "" ) diff --git a/Dashboard/src/Components/Workflow/WorkflowElement.tsx b/Dashboard/src/Components/Workflow/WorkflowElement.tsx index d1f8745805..526e2f7c81 100644 --- a/Dashboard/src/Components/Workflow/WorkflowElement.tsx +++ b/Dashboard/src/Components/Workflow/WorkflowElement.tsx @@ -13,16 +13,16 @@ export interface ComponentProps { const WorkflowElement: FunctionComponent = ( props: ComponentProps, ): ReactElement => { - if ( - props.workflow._id - ) { + if (props.workflow._id) { const projectId: ObjectID | null = ProjectUtil.getCurrentProjectId(); return ( {props.workflow.name}