diff --git a/src/api/automation2Api.ts b/src/api/automation2Api.ts index 3568c46..f215f7e 100644 --- a/src/api/automation2Api.ts +++ b/src/api/automation2Api.ts @@ -101,7 +101,7 @@ export interface Automation2Workflow { // API FUNCTIONS // ============================================================================ -export type ApiRequestFunction = (options: ApiRequestOptions) => Promise; +export type ApiRequestFunction = (options: ApiRequestOptions) => Promise; /** * Fetch node types for the flow builder (backend-driven). diff --git a/src/components/Automation2FlowEditor/FlowCanvas.tsx b/src/components/Automation2FlowEditor/FlowCanvas.tsx index f5b1862..fb13034 100644 --- a/src/components/Automation2FlowEditor/FlowCanvas.tsx +++ b/src/components/Automation2FlowEditor/FlowCanvas.tsx @@ -107,7 +107,6 @@ export const FlowCanvas: React.FC = ({ const w = NODE_WIDTH; const h = NODE_HEIGHT; - const centerX = node.x + w / 2; const centerY = node.y + h / 2; if (isOutput) { @@ -432,7 +431,6 @@ export const FlowCanvas: React.FC = ({ const nt = nodeTypeMap[node.type]; const category = nt?.category ?? 'io'; const color = node.color ?? nt?.meta?.color ?? '#00BCD4'; - const totalHandles = node.inputs + node.outputs; const handles: Array<{ index: number; isOutput: boolean }> = []; for (let i = 0; i < node.inputs; i++) handles.push({ index: i, isOutput: false }); for (let i = 0; i < node.outputs; i++) handles.push({ index: node.inputs + i, isOutput: true }); diff --git a/src/components/FolderTree/SharepointBrowseTree.tsx b/src/components/FolderTree/SharepointBrowseTree.tsx index 2b2c4d7..c844f4b 100644 --- a/src/components/FolderTree/SharepointBrowseTree.tsx +++ b/src/components/FolderTree/SharepointBrowseTree.tsx @@ -101,7 +101,6 @@ function _FolderRow({ const children = loadedChildren[entry.path] ?? []; const folders = children.filter((c) => c.isFolder).sort((a, b) => a.name.localeCompare(b.name)); const files = children.filter((c) => !c.isFolder).sort((a, b) => a.name.localeCompare(b.name)); - const hasChildren = folders.length > 0 || files.length > 0; const isLoading = isExpanded && loadingPaths.has(entry.path); const handleRowClick = (e: React.MouseEvent) => { diff --git a/src/pages/views/automation2/Automation2WorkflowsTasksPage.tsx b/src/pages/views/automation2/Automation2WorkflowsTasksPage.tsx index 9c075cb..3950d06 100644 --- a/src/pages/views/automation2/Automation2WorkflowsTasksPage.tsx +++ b/src/pages/views/automation2/Automation2WorkflowsTasksPage.tsx @@ -269,8 +269,8 @@ const TaskCard: React.FC = ({ case 'input.approval': return (
- {config.title &&

{config.title as string}

} - {config.description &&

{config.description as string}

} + {config.title != null && String(config.title) !== '' &&

{String(config.title)}

} + {config.description != null && String(config.description) !== '' &&

{String(config.description)}

}